Kodi Community Forum
Move & resize a 'windowed' videoplayer (videowindow type control) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Move & resize a 'windowed' videoplayer (videowindow type control) (/showthread.php?tid=351256)



Move & resize a 'windowed' videoplayer (videowindow type control) - wallacebw - 2020-01-25

Question:

How do I move / resize videowindow type control?

I have a control  defined in an XML as follows:

python:

        <control type="videowindow" id="300">
            <description>video window</description>
            <posx>640</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>540</height>
            <visible>True</visible>
        </control>

I can interact with it via the xbmc.Player() class, but I can't seem to alter the control directly.  

example:  the following fails with - RuntimeError: Unknown control type for python
python:

self.vidPlayer  = self.getControl(300)

How do i alter a videowindow type control created via XML? (change size and position)

BONUS:   

Is there anyway to set the stretch type for a windowed video window programatically?  e.g. set it to stretch_16x9 as part of sending a xbmc.Player().play() command (or just before /after)?

Thanks


RE: Move & resize a 'windowed' videoplayer (videowindow type control) - seveerekaj - 2024-01-06

Did you ever figure this out? I have the same question and haven't found a good solution yet