Possible to loop video playback?
#1
I'm going to start helping out on the RomCollectionBrowser script skins and firstly I'm wondering if there is a way to loop the playing video so it doesn't refresh the list in a skin?

We have a list of games and each game has a wmv (which autoplays when game is selected in the list). But each time the movies starts over the list reloads and it's kinda making the browsing "sketchy".
www.emuxtras.net | EFnet #EmuXtras
Reply
#2
Some more input from the python side:

The problem is that video playback is done in a separate window. When a video stops the window changes and the main window is reinited. By design the script would end up with an empty list. To avoid this the script stores the current view state before playing the video and reloads everything when the video ends. Depending on the size of the list this reload is very annoying.

Two threads that I already found on this topic:

http://forum.xbmc.org/showthread.php?tid=43005
http://forum.xbmc.org/showthread.php?tid=35997

As this is by (XBMC) design I don't think there is an easy way to get around this problem. One idea is now to prevent the video window from being closed with looping the video.

Not sure if there is a way to support this from skinning but this is what I already tried in python:

- implemented OnPlayBackEnded and OnPlayBackStopped and tried to restart the video
- using xbmc.executebuiltin("xbmc.playercontrol(RepeatAll)") (also tried Repeat and RepeatOne)

When it comes to skinning we are using a videowindow to play the video in windowed mode:
Code:
<control type="videowindow" id="2300">
    <description>video control</description>
    <posx>15</posx>
    <posy>15</posy>
    <width>300</width>
    <height>220</height>                        
    <visible>!IsEmpty(ListItem.Property(mainviewvideosizebig))</visible>
</control>
Reply

Logout Mark Read Team Forum Stats Members Help
Possible to loop video playback?0