用C#对Vlc开发,如何使视频重复循环播放?需要如何设置?
string[] arguments = { "-I", "dummy", "--repeat", "--ignore-config", "--no-video-title", plugin_arg };
libvlc_instance_ = LibVlcAPI.libvlc_new(arguments);
这样设置后貌似还是不能循环播放
用C#对Vlc开发,如何使视频重复循环播放?需要如何设置?
string[] arguments = { "-I", "dummy", "--repeat", "--ignore-config", "--no-video-title", plugin_arg };
libvlc_instance_ = LibVlcAPI.libvlc_new(arguments);
这样设置后貌似还是不能循环播放
播放控制:
--input-repeat=<整数 [-2147483648 .. 2147483647]>
输入重复
string[] mediaOptions = new string[] { "input-repeat=" + int.MaxValue }; //x为循环次数
var media = new Media(libVLC, new Uri(videoPath), mediaOptions);
mediaPlayer.Play(media);
string[] mediaOptions = new string[] { "input-repeat=" + int.MaxValue }; //x为循环次数
var media = new Media(libVLC, new Uri(videoPath), mediaOptions);
mediaPlayer.Play(media);