added css to remove white space arround background video

adjusted spacing, added escapes to double quotes and moved the > on the body tag to its proper place!
This commit is contained in:
Phill Ridout 2010-07-03 04:06:02 +01:00
parent 70de6d8e9c
commit fda7412f75
1 changed files with 17 additions and 9 deletions

View File

@ -43,19 +43,27 @@ HTMLIMAGE = """<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();>\" <body id=\"body\" onload=\"bodyLoaded();\">
<video id=\"video\" src=\"%s\" <video id=\"video\" src=\"%s\"
autoplay loop width=%s height=%s autobuffer=\"autobuffer\" preload > autoplay loop width=\"%s\" height=\"%s\"
your browser does not support the video tag autobuffer=\"autobuffer\" preload >
</video> your browser does not support the video tag
</body></html> </video>
</body></html>
""" """
class DisplayManager(QtGui.QWidget): class DisplayManager(QtGui.QWidget):