forked from openlp/openlp
Fix up video tag for webkit view.
Remove unused tag bzr-revno: 912
This commit is contained in:
commit
39a69749a2
@ -35,27 +35,27 @@ from openlp.core.ui import HideMode
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
HTMLIMAGE = """<html>
|
|
||||||
<body>
|
|
||||||
<img src=\"file://%s\" alt\"Hello\">
|
|
||||||
</body></html>
|
|
||||||
"""
|
|
||||||
|
|
||||||
#http://www.steveheffernan.com/html5-video-player/demo-video-player.html
|
#http://www.steveheffernan.com/html5-video-player/demo-video-player.html
|
||||||
HTMLVIDEO = u"""<html>
|
HTMLVIDEO = u"""<html>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<head>
|
||||||
|
<style>
|
||||||
|
*{
|
||||||
|
margin: 0;
|
||||||
|
padding:0
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript" charset="utf-8">
|
||||||
var video;
|
var video;
|
||||||
var bodyLoaded = function(){
|
var bodyLoaded = function(){
|
||||||
video = document.getElementById("video");
|
video = document.getElementById("video");
|
||||||
video.volume = 0;
|
video.volume = 0;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<body id=\"body\" onload=\"bodyLoaded();>\"
|
</head>
|
||||||
<video id=\"video\" src=\"%s\"
|
<body id="body" onload="bodyLoaded();">
|
||||||
autoplay loop width=%s height=%s autobuffer=\"autobuffer\" preload >
|
<video id="video" src="%s" autoplay="autoplay" loop="loop"
|
||||||
your browser does not support the video tag
|
width="%s" height="%s" autobuffer="autobuffer" preload="preload" />
|
||||||
</video>
|
</body></html>
|
||||||
</body></html>
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class DisplayManager(QtGui.QWidget):
|
class DisplayManager(QtGui.QWidget):
|
||||||
|
Loading…
Reference in New Issue
Block a user