简体   繁体   中英

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. 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

Use 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM