Page 1 of 1

Video/Resizing Help?

Posted: 05 Aug 2009 13:14
by bedroompop
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!? >_<

Re: Video/Resizing Help?

Posted: 05 Aug 2009 14:46
by erwan10
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

Re: Video/Resizing Help?

Posted: 05 Aug 2009 16:16
by bedroompop
ah, thanks! that solved the video problem rather easily. i hope somebody can help with the resizing ._.

Re: Video/Resizing Help?

Posted: 05 Aug 2009 16:44
by erwan10
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

Re: Video/Resizing Help?

Posted: 05 Aug 2009 17:25
by bedroompop
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 @_@

Re: Video/Resizing Help?

Posted: 05 Aug 2009 20:53
by erwan10
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.

Re: Video/Resizing Help?

Posted: 06 Aug 2009 14:13
by 3breadt
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.

Re: Video/Resizing Help?

Posted: 06 Aug 2009 15:37
by bedroompop
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?

Re: Video/Resizing Help?

Posted: 06 Aug 2009 17:09
by 3breadt
It will be resized with the slider, so the lefttop and rightbottom attributes need only to be set in the slider.

Re: Video/Resizing Help?

Posted: 06 Aug 2009 22:10
by bedroompop
i just tried that and it didn't work for me. it's still only as wide (250px) as set. am i missing something?

Re: Video/Resizing Help?

Posted: 07 Aug 2009 10:14
by 3breadt
Is the slider itself resizing?

Re: Video/Resizing Help?

Posted: 07 Aug 2009 17:06
by bedroompop
the slider is resizing, just not the sliderbackground, so there must be another code to put in..

Re: Video/Resizing Help?

Posted: 07 Aug 2009 19:06
by erwan10
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

Re: Video/Resizing Help?

Posted: 07 Aug 2009 20:05
by bedroompop
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!