set <audio> preload to none to try and stop browser from trying to load all wavs

This commit is contained in:
Sanj 2011-09-05 17:39:31 +05:30
parent 18edc8849b
commit e06121ab13

View File

@ -25,7 +25,7 @@ def do():
print title
indexHtml += "<a target='_blank' href='%s'>%s</a><br />Time: %s<br/>\n" % (outfile, title, time,)
indexHtml += "<a target='_blank' href='http://pad.ma/%s'>View on Padma</a><br />\n" % (padmaId,)
audioHtml = "<audio controls='controls' src='wav/%s'></audio><br /><br />\n\n" % (audioFile,)
audioHtml = "<audio controls='controls' src='wav/%s' preload='none'></audio><br /><br />\n\n" % (audioFile,)
print audioHtml
indexHtml += audioHtml
out = codecs.open(outfile, mode="w", encoding="utf-8")