2016-07-02, 00:05
Hi all,
I need some help with resize on videowindow control. I'm using kodi to play a live stream inside a video window.
When I play a live stream like this:
The live stream is displayed in that VideoWindow, however when I try to use setheight and setwidth method to try to stretch to fit the video, the video does not stretch to fit in the area in a full screen.
The videos is being displayed at 432x225 as I couldn't be able to resize it as the control is not found.
Is there a way I could make the video stretch to fit the VideoWindow 1280x720 area?
Thanks in advance
I need some help with resize on videowindow control. I'm using kodi to play a live stream inside a video window.
Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
<allowoverlay>no</allowoverlay>
<coordinates>
<system>1</system>
<posx>0</posx>
<posy>0</posy>
</coordinates>
<controls>
<control type="image" id="1">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>background-defeat.png</texture>
<animation effect="fade" start="0" end="100" time="6500">WindowOpen</animation>
</control>
...etc
<control type="videowindow" id="389">
<posx>822</posx>
<posy>45</posy>
<width>432</width>
<height>225</height>
<animation type="Conditional" condition="!Control.IsVisible(389)">
<effect type="zoom" end="100" center="822,45" time="500" />
</animation>
</control>
</controls>
</window>
When I play a live stream like this:
Code:
xbmc.Player().play(item=link, windowed=True)
The live stream is displayed in that VideoWindow, however when I try to use setheight and setwidth method to try to stretch to fit the video, the video does not stretch to fit in the area in a full screen.
The videos is being displayed at 432x225 as I couldn't be able to resize it as the control is not found.
Is there a way I could make the video stretch to fit the VideoWindow 1280x720 area?
Thanks in advance