Page 1 of 1

libvlc_media_new mrl formatting

Posted: 08 Apr 2009 12:37
by vaphil
Hopefully this is an easy one...

How do I pass options into libvlc_media_new for the MRL argument?

I have tried file://c:\something.mpg --no-audio and file://c:\somthing.mpg :no-audio

Nothing happens (i.e. the file doesn't even open) although no exceptions are raised.

If I pass a simple filename then use libvlc_media_add_option("--no-audio" or ":no-audio") the file plays but the option doesnt seem to take effect

(Note --no-audio is just an example MRL, I actually want to specify a few options)

Cheers, Phil.

Re: libvlc_media_new mrl formatting

Posted: 08 Apr 2009 14:12
by RĂ©mi Denis-Courmont
Do not use -- or : in add_option...

Re: libvlc_media_new mrl formatting

Posted: 08 Apr 2009 14:33
by vaphil
many thanks, that works...