Vlc.DotNet icon indicating copy to clipboard operation
Vlc.DotNet copied to clipboard

Setting the rate parameter in VLC URL

Open gulshadaatif opened this issue 5 years ago • 4 comments

I have a question about Vlc.DotNet.

Generic information

  • Vlc.DotNet version : (3.0.0.0)
  • Vlc.DotNet project used : (Web Application)
  • libvlc version : (x86)
  • .net version : (4.5)
  • Project language : (C#)
  • Project build architecture : (x86/x64)
  • Operating system : (Windows ...) (x86/x64)

Summary

I have a Url which is working fine in vlc command line vlc --rate=4 "rtsp://username:password@ipAddress:port/someUrl"

But I want to use this in my one of core c# project where I am using VLC dll.

I have tried some ways those are :

                       string Url= "rtsp://username:password@ipAddress:port/someUrl";

                       string[] options = { "--rate="+ rate }; 
                      _videoControl.Play(new Uri(Url), options);

2

                      string Url= "rtsp://username:password@ipAddress:port/someUrl";

                      string[] options = { ":rate="+ rate }; 
                      _videoControl.Play(new Uri(Url), options);
  1.                     string Url= "rtsp://username:password@ipAddress:port/someUrl";
    
                        _videoControl.SetMedia(new Uri(Url));
                        PlaybackRateVal = (float)rate;
                       _videoControl.Rate = PlaybackRateVal * 1.0f;
                       _videoControl.Play();
    

I tried all these ways, but I am not able to set the rate of the video, basically, I want to do fast forward in my Playback video.

gulshadaatif avatar Aug 26 '20 11:08 gulshadaatif

VlcMediaPlayer.Rate =... should work. Provide full logs please.

mfkl avatar Aug 26 '20 11:08 mfkl

also try "--rate", "2"

jeremyVignelles avatar Aug 26 '20 11:08 jeremyVignelles

also try "--rate", "2"

I have tried this, I am not getting any error in the log, but when I play my recorded video on fast forward mode, it stopped the video. If you have any sample code, can you please share

gulshadaatif avatar Aug 27 '20 10:08 gulshadaatif

You created the issue, so you should share your full code and your full verbose logs (even if you see no error)

mfkl avatar Aug 27 '20 11:08 mfkl