Head r913

This commit is contained in:
Jon Tibble 2010-07-04 17:15:29 +01:00
commit 765cc6ddbe
2 changed files with 15 additions and 15 deletions

View File

@ -35,14 +35,15 @@ 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>
<head>
<style>
*{
margin: 0;
padding:0
}
</style>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
var video; var video;
var bodyLoaded = function(){ var bodyLoaded = function(){
@ -50,11 +51,10 @@ HTMLVIDEO = u"""<html>
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>
""" """

View File

@ -32,7 +32,7 @@ from openlp.core.lib import MediaManagerItem, BaseListWithDnD, Receiver, \
from openlp.plugins.songs.forms import EditSongForm, SongMaintenanceForm, \ from openlp.plugins.songs.forms import EditSongForm, SongMaintenanceForm, \
ImportWizardForm ImportWizardForm
from openlp.plugins.songs.lib import SongXMLParser from openlp.plugins.songs.lib import SongXMLParser
from openlp.plugins.songs.lib.db import Song from openlp.plugins.songs.lib.db import Author, Song
log = logging.getLogger(__name__) log = logging.getLogger(__name__)