Setting xbmc.Player() to play in resized window
#1
Hi,

I was wondering if its possible to get the player to play in a resized window? Potentially looking to make an addon to have it play on half the screen and then write a gui for the other half so you can play a video and maybe practice code in the other half. Thoughts going into it are to have a text input field in which you can input code while following youtube videos and then it can create a py file with what you input then use runscript to run this code and have a way of catching/displaying it so may be back to ask for further help.

I have tried     xbmc.Player().play(url, windowed=True) just to see what happened and it just played behind the menu item. I'm pretty sure the old FTV Guide used to play in a shrunken window when you pressed back on a stream and that was the only reference to anything other than normal playing that I could see.

Any help or ideas for where to head with addon would be appreciated.

Many thanks in advance
Reply
#2
found a work around by writing a gui and adding the following

        <control type="videowindow">
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <animation type="Conditional" condition="!Control.IsVisible(5000)">
                <effect type="zoom" end="50" center="1300,345" time="500" />
            </animation>
        </control>
Reply
#3
Former default skin Confluence had a window for minilized playback. Estuary doesn't have one. It just has the videowindow as background for the UI.
Reply

Logout Mark Read Team Forum Stats Members Help
Setting xbmc.Player() to play in resized window0