RadialSlider

About usage, announcement and development of skins for VLC
kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

RadialSlider

Postby kalyx » 28 Jun 2010 18:39

I can't get the radial slider to work. The skin will not load with the following:

Code: Select all

<Bitmap id="bmpRadial" file="radial.png" alphacolor="#FF0000"/> <RadialSlider value="volume" x="10" y="180" sequence="bmpRadial" nbimages="5" minangle="0" maxangle="270" lefttop="leftbottom" rightbottom="leftbottom"/>

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: RadialSlider

Postby erwan10 » 28 Jun 2010 21:03

What does the log say ? (vlc --verbose 2). If there is a syntax error or something wrong, this log will tell you

kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

Re: RadialSlider

Postby kalyx » 28 Jun 2010 22:39

I'm on windows XP.
If I start vlc from a console like
vlc --verbose 2
I don't see any log.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: RadialSlider

Postby erwan10 » 29 Jun 2010 08:52

vlc -I skins --verbose 2 --skins2-last your_skins.vlt 1> c:\\tmp\\log 2>&1

kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

Re: RadialSlider

Postby kalyx » 30 Jun 2010 17:25

The logs for the linear or radial slider are identical except that with the radial the log ends at this point:

Code: Select all

[00e1748c] main access debug: using access module "access_file" [00e1748c] main access debug: TIMER module_need() : 3.688 ms - Total 3.688 ms / 1 intvls (Avg 3.688 ms) [00e18024] main stream debug: Using AStream*Stream [00e18024] main stream debug: pre buffering [00e18024] main stream debug: received first data after 0 ms [00e18024] main stream debug: pre-buffering done 1024 bytes in 0s - 20833 kbytes/s [00e0a7b4] skins2 interface: skin: xxx author: xxx
Here is the command I used:

Code: Select all

vlc -I skins --verbose 2 --skins2-last c:\\XXX.vlt 1> c:\\log.txt 2>&1
BTW, Do you know of any skins that use a radial slider?

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: RadialSlider

Postby erwan10 » 30 Jun 2010 18:35

It seems the RadialSlider tag has not been used a lot. A search on the whole set of skins available on http://www.videolan.org/vlc/skins.php gives no such tag.

As for your skin, you should have more logs. Can you paste your .vlt file somewhere so that I can have a look at it.

Erwan10

kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

Re: RadialSlider

Postby kalyx » 30 Jun 2010 22:29

It's just a simple test skin. As configured below it will run. But if you comment out the Slider and uncomment the RadialSlider, it doesn't work.

theme.xml

Code: Select all

<!DOCTYPE Theme PUBLIC "-//VideoLAN//DTD VLC Skins V2.0//EN" "skin.dtd"> <Theme version="2.0" magnet="10" alpha="255" movealpha="255"> <ThemeInfo name="xxx" author="xxx"/> <Bitmap id="bmpBack" file="back.png" alphacolor="#FF0000"> <SubBitmap id="corner" x="0" y="0" width="10" height="10"/> </Bitmap> <!-- 10 12x12 images concatenated vertically --> <Bitmap id="bmpRadial" file="radial.png" alphacolor="#FF0000"/> <Bitmap id="bmpButtons" file="buttons.png" alphacolor="#FF0000"> <SubBitmap id="volUp" x="0" y="0" width="10" height="10"/> </Bitmap> <Window id="wndVideo" x="0" y="0" visible="true" dragdrop="true" playondrop="false"> <Layout id="layVideo" width="150" height="100" minwidth="150" minheight="100" maxwidth="1920" maxheight="1080"> <Image image="bmpBack" x="0" y="0" action="move" resize="scale" lefttop="lefttop" rightbottom="rightbottom"/> <Image image="corner" x="140" y="90" action="resizeSE" lefttop="rightbottom" rightbottom="rightbottom"/> <Video id="video" x="5" y="5" width="140" height="70" lefttop="lefttop" rightbottom="rightbottom"/> <Slider value="volume" x="10" y="90" up="volUp" points="(0,0),(50,0)" thickness="2" lefttop="leftbottom" rightbottom="leftbottom"/> <!-- <RadialSlider value="volume" x="10" y="90" sequence="bmpRadial" nbimages="10" minangle="0" maxangle="270" lefttop="leftbottom" rightbottom="leftbottom"/> --> </Layout> </Window> </Theme>
back.png
Image
buttons.png
Image
radial.png
Image\

BTW, I'm running version 1.0.5 of vlc.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: RadialSlider

Postby erwan10 » 01 Jul 2010 10:32

Obviously, this skin feature (RadialSlider) was never finished. I found several bugs that prevented it from working at all.
You don't have more logs, because it crashed :(

I'm about to commit fixes. It will be available in a soon-to-come update of vlc1.1

Erwan10

kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

Re: RadialSlider

Postby kalyx » 01 Jul 2010 15:41

Thanks for looking into it. I'll try it again after the next update.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: RadialSlider

Postby erwan10 » 02 Jul 2010 00:07

A last thing, the documentation is not that clear about what minangle and maxangle means.

The vlc trigonometry goes like this :
- angle = 0 is the Y-axis towards the bottom
- it goes clockwise

For your radial.png, you should give the following : minangle="45.0'' maxangle="315.0" for the best visual result.

And if you wish to test it, nightly builds are usually available (http://nightlies.videolan.org/build/), but the server seems down just right now.

Erwan10

kalyx
New Cone
New Cone
Posts: 9
Joined: 28 Jun 2010 18:17

Re: RadialSlider

Postby kalyx » 02 Jul 2010 02:14

Thanks for the info about the angles. I was just guessing since, as you said, the documentation was unclear. I'll try a nightly build when the server is back up. Thanks again. :)


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 20 guests