Plugin issue found with "playlist.add(url, name, options)"

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
verica
New Cone
New Cone
Posts: 2
Joined: 18 Nov 2011 13:48

Plugin issue found with "playlist.add(url, name, options)"

Postby verica » 23 Nov 2011 10:56

I've posted a question days ago (viewtopic.php?f=16&t=95742) and the troubleshooting led me to debugging the code for the ActiveX VLC plugin.

What I found is that the options always get added as untrusted, i.e. flag unique:
Class plugin.cpp

Code: Select all

int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const char **optv) { ..... for( int i = 0; i < optc; ++i ) { libvlc_media_add_option_flag(p_m, optv[i], libvlc_media_option_unique);//libvlc_media_option_trusted); } .... }
libvlc_media.h

Code: Select all

enum { libvlc_media_option_trusted = 0x2, libvlc_media_option_unique = 0x100 };
If I replace the flag with the other enum value libvlc_media_option_trusted the specified option in playlist.add(url, name,options) is successfully added.

Is there a way to accomplish the same efect without modifying the code of the plugin?
Why is it set as untrusted in the first place?

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: Plugin issue found with "playlist.add(url, name, options

Postby saricnet » 30 Mar 2013 12:43

Can I get your modified activeX, I need that ?!

jerry20
Blank Cone
Blank Cone
Posts: 31
Joined: 02 Oct 2013 16:30

Re: Plugin issue found with "playlist.add(url, name, options

Postby jerry20 » 04 Oct 2013 23:47

I have the same problem. Please I need the modifed activex too.
Or please tell me how it's done.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: Plugin issue found with "playlist.add(url, name, options

Postby RSATom » 05 Oct 2013 03:39

what exactly untrusted option do you need?

jerry20
Blank Cone
Blank Cone
Posts: 31
Joined: 02 Oct 2013 16:30

Re: Plugin issue found with "playlist.add(url, name, options

Postby jerry20 » 05 Oct 2013 11:57

I have been trying to set options for the activex plugin under c#.net without success:
https://forum.videolan.org/viewtopic.php?f=16&t=114103

I found a post in the forum that linked to this post without description. So I thought this may be the problem.

Thanks


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests