This commit is contained in:
j 2010-09-08 14:06:28 +02:00
parent f3f40f6e2f
commit 152d2f7cbe

View file

@ -22,7 +22,8 @@ $(function() {
pageWidth = $document.width() - 384 - 2, pageWidth = $document.width() - 384 - 2,
posterFrame = 1515, posterFrame = 1515,
points = [2059, 2748], points = [2059, 2748],
videoId = document.location.hash.substring(1); videoId = document.location.hash.substring(1),
videoUrl = "/" + videoId + "/96p." + ($.support.video.webm ? "webm": "mp4");
$.getJSON("/" + videoId + "/data/video.json", function(video) { $.getJSON("/" + videoId + "/data/video.json", function(video) {
var duration = video.duration, var duration = video.duration,
@ -77,7 +78,7 @@ $(function() {
posterFrame: self.options.posterFrame, posterFrame: self.options.posterFrame,
subtitles: self.options.subtitles, subtitles: self.options.subtitles,
type: type, type: type,
url: "/" + videoId + "/96p." + ($.support.video.webm ? "webm": "mp4"), url: videoUrl,
width: self.sizes.player[i].width width: self.sizes.player[i].width
}) })
.css({ .css({