2011-11-17, 19:29
willyt Wrote:Hey! So I tweaked TVTunes to play the Blu-Ray menu music for my Movies Library when I flip through them... and it changes music as soon as I move to a different title. Unfortunately, I have another idea, and am currently trying to make it work... but with zero Python experience... I think I'm stuck. I'm trying to have it play the Blu-Ray video menu background video file, and I successfully got it to play as a background for XBMC... but that takes up the whole screen and takes me out of the movie menu. I'd like to simply have it play in the "Picture-In-Picture" mode in the skin, like a mini-movie pops up. Hope that makes some sense at least. Anyway, I thought it was a cool idea and that someone maybe would want to integrate that into TVTunes... or maybe suggest how to do it in Python? All I need is to add the silly video window in the skin.the start a video in a small window, instead of fullscreen,
Thanks!
you need to add ',1' to the play media command:
Quote:PlayMedia(media[,isdir][,1],[playoffset=xx]) Plays the media. This can be a playlist, music, or video file, directory, plugin or an Url. The optional parameter ",isdir" can be used for playing a directory. ",1" will start a video in a preview window, instead of fullscreen. If media is a playlist, you can use playoffset=xx where xx is the position to start playback from.
to add a video window to the skin, you need to add a videowindow control:
Code:
<control type="videowindow">
<posx>100</posx>
<posy>100</posy>
<width>160</width>
<height>90</height>
</control>