我当前正在使用VlcControl(Vlc.DotNet.Forms)在rtsp url中使用最新的VLC Media Player播放视频
c#代码_videoControl.Play(new Uri(networkUrl), options);
这里的问题是,视频不是在默认的Video Track 1中播放,而是在Video Track 2中播放。
是否可以将“视频轨道”设置为1?
请让我知道是否有任何选项可以设置视频曲目和播放。
答案 0 :(得分:0)
您可以使用它来选择要播放的曲目: (免责声明:我在用手机,但没有测试代码)
mediaPlayer.SetMedia(...);
mediaPlayer.Parse();
var videoTracks = mediaPlayer.Video.Tracks.All.ToArray();
mediaPlayer.Video.Tracks.Current = videoTracks[0];
mediaPlayer.Play();
Audio
可以实现音轨
答案 1 :(得分:-1)
Am using VLC 2.0(Vlc.DotNet.Core.Medias) version , to play the video in latest VLC Media player using rtsp url in c# code
VlcControl _videoControl;
String rtspUrl = networkUrl;
var media = new LocationMedia(rtspUrl);
media.AddOption("rtsp-tcp");
_videoControl.Play(media);
The issue here is ,the video is not playing in default Video Track 1 but it is playing in Video Track 2.
Is there any way to set the Video Track to 2 in this version of VLC(2.0)?