Page 1 of 1

options parameter of MRL in plugin doesn't work

Posted: 21 Jul 2010 18:00
by sphelan
There is this example on the webplugin documentation:

Code: Select all

var options = new Array("--rtsp-tcp"); var id = vlc.playlist.add("rtsp://servername/item/to/play", "fancy name", options); vlc.playlist.playItem(id);
It doesn't seem to have any affect the stream it is still udp. Is this broken? Changed?

Thanks!

Re: options parameter of MRL in plugin doesn't work

Posted: 22 Jul 2010 00:36
by Jean-Baptiste Kempf
use :rtsp-tcp

Re: options parameter of MRL in plugin doesn't work

Posted: 22 Jul 2010 19:31
by sphelan
Hi Jean,

Thanks that made it work. Is that the correct format for all of the options then using the ":" instead of "--"?

Thanks,

Shane

Re: options parameter of MRL in plugin doesn't work

Posted: 23 Jul 2010 00:07
by Jean-Baptiste Kempf
: is for one item

Re: options parameter of MRL in plugin doesn't work

Posted: 08 Dec 2010 23:10
by doblinger
I'm having some trouble with the mrl.

I was able to set the streaming method using the ":rtsp-tcp" command-line option (in the plug-in) using the following javascript code:

var vlc = document.getElementById('vlc');
var mrl = "rtsp://mymrl";
var options = ":rtsp-tcp";
var vId = vlc.playlist.add(mrl, "vlc", options);
vlc.playlist.playItem(vId);


However, I could NOT set the streaming method using the ":rtsp-http-port=8080" as an option, even though this works in the stand-alone VLC player.

"--rtsp-http-port=8080" also did not work.

Is this a known bug in the plugin code or am I missing something?

Re: options parameter of MRL in plugin doesn't work

Posted: 12 Jan 2011 10:30
by akabane
Hello,

I am trying to do a similar thing but with the "--rtp-client-port=12345" command line (I need to fix UDP port from the client side in order to enable it in its firewall).
It does not seems to work with the activex. I have also tried the following option : ":rtp-client-port=12345" but it is also not working.

Has anyone achieve that ?
Is there a list of all the supported activex options ?

Thanks in advance for your help !

Re: options parameter of MRL in plugin doesn't work

Posted: 13 Jul 2012 10:06
by rolya85
Hi,

I'm trying to add cartoon video effect to the Webplugin. (vlan v2.0.2 installed).
But it doesn't work. So I'm wondering is this feature out of the webplugin scope or I've a mistake in my samples?

There is a list of my attempts:
  1. Code: Select all

    var options=[':gradient-mode=gradient',':gradient-cartoon']; var id = document.vlc.playlist.add("http://localhost:8080", "name", options); document.vlc.playlist.playItem(id);
  • Code: Select all

    var options=[':gradient-mode="gradient"',':gradient-cartoon']; var id = document.vlc.playlist.add("http://localhost:8080", "name", options); document.vlc.playlist.playItem(id);
  • Code: Select all

    var id = document.vlc.playlist.add("http://localhost:8080", "name", ':gradient-mode=gradient :gradient-cartoon'); document.vlc.playlist.playItem(id);
Maybe I've missed something (for example to switch on this video effect) or maybe I have spelling error.

P.S.: The video plays fine and all java script events and methods work also fine.

Re: options parameter of MRL in plugin doesn't work

Posted: 17 Jul 2012 02:13
by Jean-Baptiste Kempf
Not sure you can load the filters from the web.

Re: options parameter of MRL in plugin doesn't work

Posted: 17 Jul 2012 15:29
by rolya85
Thank you, Jean.

Maybe It's possible to add this filter to streaming file through VLC. For example, use Generated stream output string (the last step on streaming through VLC):

Code: Select all

:sout=#transcode{vcodec=theo,vb=800,scale=1,acodec=flac,ab=128,channels=2,samplerate=44100}:http{mux=ogg,dst=:8080/} :sout-keep
Or Is this filter just a player feature and there is no way to stream with cartoon effect?

Re: options parameter of MRL in plugin doesn't work

Posted: 19 Jul 2012 18:50
by rolya85
I've managed to configure streamming to use cartoon effect.

Code: Select all

:sout=#transcode{vfilter=gradient{gradient-mode=gradient,gradient-cartoon},vcodec=theo,vb=2000,scale=0.67,acodec=vorb,ab=128,channels=2}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display} :sout-keep

Re: options parameter of MRL in plugin doesn't work

Posted: 18 Feb 2019 16:28
by TiagoDias
Hello,

I am trying to do a similar thing but with the "--rtp-client-port=12345" command line (I need to fix UDP port from the client side in order to enable it in its firewall).
It does not seems to work with the activex. I have also tried the following option : ":rtp-client-port=12345" but it is also not working.

Has anyone achieve that ?
Is there a list of all the supported activex options ?

Thanks in advance for your help !
Good morning!

It passed all this time and I'm now getting this same problem using the ActiveX, it works with VLC UI options, with VLC command line but ":rtp-client-port=12345" does nothing with the ActiveX options.

Does anyone know if this is an ActiveX limitation or if there is another way to achieve the same effect?

Thanks!

Re: options parameter of MRL in plugin doesn't work

Posted: 18 Feb 2019 18:06
by Jean-Baptiste Kempf
Hello,

I am trying to do a similar thing but with the "--rtp-client-port=12345" command line (I need to fix UDP port from the client side in order to enable it in its firewall).
It does not seems to work with the activex. I have also tried the following option : ":rtp-client-port=12345" but it is also not working.

Has anyone achieve that ?
Is there a list of all the supported activex options ?

Thanks in advance for your help !
Good morning!

It passed all this time and I'm now getting this same problem using the ActiveX, it works with VLC UI options, with VLC command line but ":rtp-client-port=12345" does nothing with the ActiveX options.

Does anyone know if this is an ActiveX limitation or if there is another way to achieve the same effect?

Thanks!
Currently, this is a limitation of the ActiveX module.

Re: options parameter of MRL in plugin doesn't work

Posted: 19 Feb 2019 12:19
by TiagoDias
Thank you very much for the reply dear Jean.

Now that VLC can only run on IE are there any plans from VLC to offer RTSP support in other browsers with a different approach?

Re: options parameter of MRL in plugin doesn't work

Posted: 20 Feb 2019 20:30
by Jean-Baptiste Kempf
Thank you very much for the reply dear Jean.

Now that VLC can only run on IE are there any plans from VLC to offer RTSP support in other browsers with a different approach?
Yes, there will be.