Video/Resizing Help?

About usage, announcement and development of skins for VLC
bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Video/Resizing Help?

Postby bedroompop » 05 Aug 2009 13:14

i can understand everything except fully resizing the player in a skin i'm making, and having video inside the window work perfectly. i can get the video in there, but when i move the player, the video stays wherever it was on my desktop, and resizing is a disaster for me. i can't figure out the right codes to put in, and looking through other people's xml's didn't help because i had no idea which ones to use! SO, is there any way somebody can post the xml coding required for full resizing of the player (for bottom left/right corners)? that's all i need so that i can just tweak the x's and y's and be fine. here's the skin i'm working on..

Image

a skin that amazing HAS to be finished, no!? >_<

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

Re: Video/Resizing Help?

Postby erwan10 » 05 Aug 2009 14:46

It could be that the Video tag is not within the Window tag of the window you intend to move.

Beware, skins can have multiple windows. If you happen to dedicate a window tag to a video tag, this is a new window independent of the main window you intend to move.

Erwan10

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 05 Aug 2009 16:16

ah, thanks! that solved the video problem rather easily. i hope somebody can help with the resizing ._.

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

Re: Video/Resizing Help?

Postby erwan10 » 05 Aug 2009 16:44

What do you mean with "resizing is a disaster for me" ?

Maybe, choose not to scale images, if it's just a performance problem. Scaling images on the fly can result in resizing not being as smooth as one could expect.

Erwan10

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 05 Aug 2009 17:25

i can't get it figured out after only having done a horizontally resized skin. with that one, i had a bodyside image and a middle image that vlc recognised to resize from. now with resizing fully, i've looked at other xml's and no images are defined for the resizing. so it's just code, right? but i don't know which codes and my brain's starting to melt @_@

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

Re: Video/Resizing Help?

Postby erwan10 » 05 Aug 2009 20:53

Yes, it is just code !

The key parameter is the resize parameter of an image tag
(excerpt from http://www.videolan.org/vlc/skins2-create.html)
resize

Since VLC 0.8.2. Specify the behaviour of the image when it is resized. Possible values are 'mosaic' (the image is repeated as many times as necessary to reach the wanted dimensions) and 'scale' (the image is actually rescaled). Beware that the 'scale' behaviour is much slower than the 'mosaic' one, so make sure to use it only when it's really needed.

Default value: mosaic.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Video/Resizing Help?

Postby 3breadt » 06 Aug 2009 14:13

Well the resize behaviour is just one part of the whole deal, you also have to link the different images to the different edges of the window, so that they are repositioned correctly. http://www.videolan.org/vlc/skinedhlp/resizable.html might help you grasp how to do it.
-- 3breadt (aka altglass)

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 06 Aug 2009 15:37

i've looked at that and it didn't really help me understand it, just makes me feel like i'm in school. i gave up on having it fully resizeable and made it into a remote skin that resizes horizontally, but i'm having trouble with the sliderbackground. can it be stretched with the player? here's my sliderbackground coding..

<Slider x="0" y="13" value="time" up="timeKnob_n" down="timeKnob_d" over="timeKnob_h" points="(0,0),(250,0)" tooltiptext="Time" />
<Slider x="0" y="0" points="(0,2),(250,2)" thickness="8" up="blank" value="time">
<SliderBackground image="progress" nbhoriz="1" nbvert="251" padvert="0" padhoriz="0"/>

would it use the ' lefttop="lefttop" rightbottom="righttop" ' code or something else, and where do i put it?

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Video/Resizing Help?

Postby 3breadt » 06 Aug 2009 17:09

It will be resized with the slider, so the lefttop and rightbottom attributes need only to be set in the slider.
-- 3breadt (aka altglass)

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 06 Aug 2009 22:10

i just tried that and it didn't work for me. it's still only as wide (250px) as set. am i missing something?

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Video/Resizing Help?

Postby 3breadt » 07 Aug 2009 10:14

Is the slider itself resizing?
-- 3breadt (aka altglass)

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 07 Aug 2009 17:06

the slider is resizing, just not the sliderbackground, so there must be another code to put in..

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

Re: Video/Resizing Help?

Postby erwan10 » 07 Aug 2009 19:06

Are you sure to properly close slider tags ..... <SLIDER .... /> means it doesn't expect </SLIDER>. Maybe there are some trailing / to remove, since sliderbackground must be within <slider> ... </slider> tags

Erwan10

bedroompop
Blank Cone
Blank Cone
Posts: 15
Joined: 06 Jul 2009 21:32

Re: Video/Resizing Help?

Postby bedroompop » 07 Aug 2009 20:05

removing any of the /'s makes it so the skin doesn't load. can you take a few minutes (pretty pretty please!) to look at the file if i send it? the sliderbackground is all i need resolved before i can release this skin, and i so badly want to!


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 6 guests