[英]Using LibvlcSharp, how can I change the speed that a video is playing
I am using Libvlcscharp V3.5 in a windows forms application in visual studio 2019 I am playing a video stored on my hard drive.我在 Visual Studio 2019 的 windows forms 应用程序中使用 Libvlcscharp V3.5 我正在播放存储在硬盘上的视频。 Is it possible to change the speed that the video is playing.
是否可以更改视频播放的速度。 I found the MediaPlayer.Rate but it only gets the rate which is set to 1 Thank You
我找到了 MediaPlayer.Rate 但它只获得设置为 1 的费率 谢谢
Use mediaPlayer.SetRate().使用 mediaPlayer.SetRate()。 It is not a setter so you can check the return value in case of error: https://github.com/videolan/libvlcsharp/blob/08d69ff861a4f93431c02452028d0d663c54a6f1/src/LibVLCSharp/Shared/MediaPlayer.cs#L863
它不是设置器,因此您可以在出现错误时检查返回值: https://github.com/videolan/libvlcsharp/blob/08d69ff861a4f93431c02452028d0d663c54a6f1/src/LibVLCSharp/Shared/MediaPlayer.cs#L8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.