Page 1 of 1

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

Posted: 23 Nov 2011 10:56
by verica
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?

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

Posted: 30 Mar 2013 12:43
by saricnet
Can I get your modified activeX, I need that ?!

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

Posted: 04 Oct 2013 23:47
by jerry20
I have the same problem. Please I need the modifed activex too.
Or please tell me how it's done.

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

Posted: 05 Oct 2013 03:39
by RSATom
what exactly untrusted option do you need?

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

Posted: 05 Oct 2013 11:57
by jerry20
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