vlc.playlist.add 'options' not working VLC 1.1.5

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
zenouija
New Cone
New Cone
Posts: 2
Joined: 24 Feb 2011 10:42

vlc.playlist.add 'options' not working VLC 1.1.5

Postby zenouija » 24 Feb 2011 10:55

Hello Guys,

I need help, I'm not able to specify any options in vlc.playlist.add(mrl,name,options) to work in VLC version 1.1.5. I can display video but any option i put in seems to be ignored. Im not able to save the file. What am I doing wrong? Is there anything I need to add or a workaround I need to perform?

Thanks for your help! :)


javascript:
function doGo(targetURL) {
var vlc1 = document.getElementById("vlc1");
var options = new Array(":sout=#duplicate{dst=display, dst=std{access=file,mux=asf,dst=C:\VLC\video1onshore.asf}}");
vlc1.playlist.clear();
vlc1.playlist.add(targetURL, "", options);

//vlc1.playlist.add(targetURL);
vlc1.playlist.play();
};

HTML activex embed:
<td colspan="2">
<object classid="clsid:9be31822-fdad-461b-ad51-be1d1c159921"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
width="720" height="576" id="vlc1" events="true" viewastext>
<param name="mrl" value="" />
<param name="showdisplay" value="true" />
<param name="autoloop" value="false" />
<param name="autoplay" value="false" />
<param name="volume" value="50" />
<param name="starttime" value="0" />
</object>
</td>

zenouija
New Cone
New Cone
Posts: 2
Joined: 24 Feb 2011 10:42

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby zenouija » 25 Feb 2011 08:57

Had anyone experienced this? Please help... :)

Martin_Johansson
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2011 13:10

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby Martin_Johansson » 24 Mar 2011 13:20

Hi

I have also tried to get around this for some time now. Found some other threads mentioning something about security measures making vlc ignoring options in playlist. I can make a http-stream in standalone VLC and view it in my VB-program, but I cannot do the reverse (create http-stream in VB and view in standalone VLC). There must be a way to get around this since the same thing can be done in VLC standalone! Did you manage to get passed this?

Thanks in advance!

/Martin J

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby Rémi Denis-Courmont » 24 Mar 2011 13:54

Sure you can. But you can't do it with ActiveX.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Martin_Johansson
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2011 13:10

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby Martin_Johansson » 24 Mar 2011 14:23

Ok, thanks for clarifying that.

/Martin J

adam.eckels
New Cone
New Cone
Posts: 4
Joined: 26 Apr 2011 00:38

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby adam.eckels » 30 Apr 2011 01:22

So what CAN you do with ActiveX vs. the application? Is there a table I can reference somwhere or is that asking for too much?

jacky912
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Jul 2009 02:48

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby jacky912 » 30 May 2011 18:05

If it doesn't work on ActiveX only, somehow it is doable but the developer didn't want to enable it.

mabeghin
New Cone
New Cone
Posts: 1
Joined: 10 Jan 2012 12:38

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby mabeghin » 10 Jan 2012 12:52

Developers have to make some limitations because if the following options were allowed on a web page:

> var options = new Array(":sout=#duplicate{dst=display, dst=std{access=file,mux=asf,dst=C:\VLC\video1onshore.asf}}");

That would mean a web page can write to your hard drive... Of course that is forbidden.

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

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby Jean-Baptiste Kempf » 10 Jan 2012 13:01

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

drdim
New Cone
New Cone
Posts: 3
Joined: 27 Feb 2012 05:51

Re: vlc.playlist.add 'options' not working VLC 1.1.5

Postby drdim » 27 Feb 2012 06:00

VLC 2.0.0
options not working
especially, i am interesting in the "crop" option:

":crop=1500:500"


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests