Kodi Community Forum

Full Version: Video playback inside control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings.

I would like to use xbmc.player.play() to show a video inside a control that I've placed in Home.xml

The thing is, I do not know how to do this.
I do no know which control type to use, nor how to instruct xbmc.player the control where the video should be rendered.

This is the control.
Code:
<control type=" ??? " id="9990">
<posx>20</posx>
<posy>20</posy>
<width>600</width>
<height>400<width>
</control>

This is the section that says instructs which video to play.
Code:
link='/home/pi/vid.flv'
xbmc.Player().play(item=link)

How to instruct Player() to render the video on the control 9990?
Ops. I missed this control in the Skinning docs.

Here is how:
Code:
<control type="videowindow" id="3">
<description>My first video control</description>
<posx>80</posx>
<posy>60</posy>
<width>250</width>
<height>200</height>
<visible>true</visible>
</control>

Code:
link='/home/user/vid.flv'
xbmc.Player().play(item=link, windowed=True)