[vlc-devel] skins: different start windows for audio and video

brezhoneg1 brezhoneg1 at yahoo.fr
Thu Sep 2 09:21:14 CEST 2010

  Le 02/09/2010 00:45, Jason Butler a écrit :
> I am writing a skin and I want the player to start in minimal mode if 
> it is started playing audio and normal mode if it is started playing 
> video. I tried using the lines (vlc.hasVout) and (not vlc.hasAudio) 
> for the main window visibility and (vlc.hasAudio) and (not 
> vlc.hasVout) for the minimal window visibility but VLC saves the skin 
> windows states when it exits so it doesn't work.
> Is there a way to get VLC not to save the skin windows states?

No, window states are always saved. Still, you can reset config before 
launching vlc, something like :

    vlc -I skins  --skins2-last  /path/your_skin.vlt  --reset-config

> Is there another way to get it to start with different windows 
> depending on weather its playing audio or video?

I personally would stick to one single window shown by default, and 
conditional layouts whose visibility is based on vlc.isPlaying and 
vlc.hasVout to automatically show or hide things for users. Using 
multiple layouts within a single window is often more advisable than 
using multiple windows for a similar result.


More information about the vlc-devel mailing list