0

I am currently using VlcControl (2014.4.18.0) to play the video in old 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?

Kindly let me know if any options available to set the video track and play.

mfkl
  • 1,914
  • 1
  • 11
  • 21
PraveenK
  • 61
  • 9

1 Answers1

0

There is a VideoTracksManagement object that allows you to change the Video track.

mfkl
  • 1,914
  • 1
  • 11
  • 21
  • Kindly can you give more information regarding this as i was unable to find it in this version of VLC (2.0 or 2014.4.18.0) dll . – PraveenK Jul 18 '19 at 06:10
  • Don't use libvlc 2, use libvlc 3 from nuget https://www.nuget.org/packages/VideoLAN.LibVLC.Windows/. VideoTracksManagement is a Vlc.DotNet object. – mfkl Jul 18 '19 at 06:27