Page 1 of 1

dvd condition

Posted: 25 Apr 2012 23:47
by alxgomz
Hello i am trying to build my vlc skin.
I'd like to have a DVD logo and DVD related buttons displayed only when reading DVD media.
I did a test with an image in a layout. This image has the following visibility value:

Code: Select all

dvd.isActive
Unfortunately, this image never appears even when playing DVD or browsing the dvd menu.
If I switch visibility to:

Code: Select all

true
I am using vlc 2.0.1-0-gf432547) on Debian.

Am i taking it the wrong way or is it a bug?

Re: dvd condition

Posted: 26 Apr 2012 12:58
by erwan10
It should work.

The default skin uses this feature with additional buttons displayed on the right hand side when dvd is active. Does this skin work for you ?

Re: dvd condition

Posted: 26 Apr 2012 17:11
by alxgomz
Hello erwan thx for your answer.
I have tried reading a dvd using:

Code: Select all

vlc --reset-config
I can't see any new button when playing a dvd (here is the screenshot):
http://imageshack.us/photo/my-images/81 ... 44158.png/

Would you mind trying my theme on your vlc? (I would send it via PM?

Re: dvd condition

Posted: 26 Apr 2012 18:35
by erwan10
That' s because you're using the qt4 interface.

There are two distinct User Interfaces within vlc that, sort of, compete with each other : the qt4 interface and the skins2 interface.

If you want to create your own skin, you need to run "vlc -I skins". I was talking about the default skin that shows up when you run this very command line.

If you have already created your own skin and already have got something like MySkin.vlt, you can test it from the command line by issuing : "vlc -I skins --skins2-last /path/MySkin.vlt"

Re: dvd condition

Posted: 26 Apr 2012 19:01
by alxgomz
vlc --reset-config -I skins gives me the following when reading a dvd:

http://img190.imageshack.us/img190/7585 ... 184700.png

As far as I can tell, there is no additionnal button.

My skin mostly work except for the DVD buttons...

I have also tried to re-compile VLC from sources, but I get the same result... I am quite lost.

Re: dvd condition

Posted: 26 Apr 2012 19:25
by erwan10
The last screen shot you provided doesn't show those additional buttons. Which command did you use to open this dvd ? Are you really working with a DVD ? Maybe try another DVD ?

At the skins2 engine level, a dvd is marked as such when chapter description is received from vlc core. And it works fine for me on windows just now with commercial DVDs.

Re: dvd condition

Posted: 27 Apr 2012 10:25
by alxgomz
Indeed, if I try with another DVD, It works as expected... I can't believe I did my tests with my only dvd that doesn't work!! But that's true...
Thanks for your help I can now continue working on my theme.