options parameter of MRL in plugin doesn't work

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sphelan
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Jul 2010 16:44

options parameter of MRL in plugin doesn't work

Postby sphelan » 21 Jul 2010 18:00

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 22 Jul 2010 00:36

use :rtsp-tcp
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sphelan
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Jul 2010 16:44

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

Postby sphelan » 22 Jul 2010 19:31

Hi Jean,

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

Thanks,

Shane

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 23 Jul 2010 00:07

: is for one item
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

doblinger
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jul 2010 17:03

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

Postby doblinger » 08 Dec 2010 23:10

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?

akabane
New Cone
New Cone
Posts: 1
Joined: 12 Jan 2011 09:37

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

Postby akabane » 12 Jan 2011 10:30

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 !

rolya85
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2012 09:36

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

Postby rolya85 » 13 Jul 2012 10:06

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 17 Jul 2012 02:13

Not sure you can load the filters from the web.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rolya85
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2012 09:36

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

Postby rolya85 » 17 Jul 2012 15:29

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?

rolya85
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2012 09:36

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

Postby rolya85 » 19 Jul 2012 18:50

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

TiagoDias
New Cone
New Cone
Posts: 5
Joined: 01 Sep 2010 22:54

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

Postby TiagoDias » 18 Feb 2019 16:28

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 18 Feb 2019 18:06

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

TiagoDias
New Cone
New Cone
Posts: 5
Joined: 01 Sep 2010 22:54

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

Postby TiagoDias » 19 Feb 2019 12:19

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 20 Feb 2019 20:30

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests