2010-05-25, 09:11
Hi,
I have some trouble with autoplaying videos in windowed mode. I am using a videowindow in the skin file and the following code to play the video when a list item is selected:
This works well if you browse the list step by step. But if you scroll down the list a bit faster video playback switches to fullscreen.
Here is a debug log when switching to fullscreen:
http://pastebin.org/277740
And here is the log while playing fine in windowed mode:
http://pastebin.org/277742
I already tried to place a time.sleep() before and after stopping and starting the video. Nothing helps.
Any ideas?
Regards,
malte
I have some trouble with autoplaying videos in windowed mode. I am using a videowindow in the skin file and the following code to play the video when a list item is selected:
Code:
if(self.player.isPlayingVideo()):
playingFile = self.player.getPlayingFile()
if(playingFile != video):
self.player.stop()
else:
return
self.player.play(video, selectedGame, True)
This works well if you browse the list step by step. But if you scroll down the list a bit faster video playback switches to fullscreen.
Here is a debug log when switching to fullscreen:
http://pastebin.org/277740
And here is the log while playing fine in windowed mode:
http://pastebin.org/277742
I already tried to place a time.sleep() before and after stopping and starting the video. Nothing helps.
Any ideas?
Regards,
malte