diff --git a/openlp/core/ui/media/webkitplayer.py b/openlp/core/ui/media/webkitplayer.py index f2dbfe5dc..e534a974b 100644 --- a/openlp/core/ui/media/webkitplayer.py +++ b/openlp/core/ui/media/webkitplayer.py @@ -44,113 +44,57 @@ VIDEO_CSS = u""" z-index:3; background-color: %(bgcolor)s; } -#video1 { - background-color: %(bgcolor)s; - z-index:4; -} -#video2 { +#video { background-color: %(bgcolor)s; z-index:4; } """ VIDEO_JS = u""" - var video_timer = null; - var current_video = '1'; + function show_video(state, path, volume, loop, variable_value){ + // Sometimes video.currentTime stops slightly short of video.duration and video.ended is intermittent! - function show_video(state, path, volume, loop, varVal){ - // Note, the preferred method for looping would be to use the - // video tag loop attribute. - // But QtWebKit doesn't support this. Neither does it support the - // onended event, hence the setInterval() - // In addition, setting the currentTime attribute to zero to restart - // the video raises an INDEX_SIZE_ERROR: DOM Exception 1 - // To complicate it further, sometimes vid.currentTime stops - // slightly short of vid.duration and vid.ended is intermittent! - // - // Note, currently the background may go black between loops. Not - // desirable. Need to investigate using two