add VLC link

This commit is contained in:
Vincent BOUQUET
2024-03-03 18:57:20 +01:00
parent a12aff10cc
commit 60a30fecb7
2 changed files with 29 additions and 1 deletions

View File

@@ -60,12 +60,15 @@ namespace robospot_camera_finder
cam_ip = ip;
this.Text = name;
string rtsp_link = "rtsp://" + ip + "/profile2/media.smp";
updateZoomSlider();
tbSerial.Text = camera.camera_serial;
tbRtspLink.Text = rtsp_link;
videoView.MediaPlayer = _mp;
var media = new Media(_libVLC, new Uri("rtsp://" + ip + "/profile2/media.smp"));
var media = new Media(_libVLC, new Uri(rtsp_link));
media.AddOption(":network-caching=25");
_mp.Play(media);
media.Dispose();