Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Setting the rate parameter in VLC URL #664

Open
gulshadaatif opened this issue Aug 26, 2020 · 4 comments
Open

Setting the rate parameter in VLC URL #664

gulshadaatif opened this issue Aug 26, 2020 · 4 comments

Comments

@gulshadaatif
Copy link

gulshadaatif commented Aug 26, 2020

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.

@mfkl
Copy link
Contributor

mfkl commented Aug 26, 2020

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

@jeremyVignelles
Copy link
Collaborator

also try "--rate", "2"

@gulshadaatif
Copy link
Author

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
Copy link
Contributor

mfkl commented Aug 27, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants