ZeBobo5 / Vlc.DotNet

.NET control that hosts the audio/video capabilities of the VLC libraries
MIT License
947 stars 416 forks source link

Setting the rate parameter in VLC URL #664

Open gulshadaatif opened 4 years ago

gulshadaatif commented 4 years ago

I have a question about Vlc.DotNet.

Generic information

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 :

1.

                       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);

3. 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.

mfkl commented 4 years ago

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

jeremyVignelles commented 4 years ago

also try "--rate", "2"

gulshadaatif commented 4 years ago

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

mfkl commented 4 years ago

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