23 lines
735 B
JavaScript
23 lines
735 B
JavaScript
var streams=${ streams }
|
|
|
|
var params = { allowScriptAccess: "always", bgcolor: "#cccccc" };
|
|
var atts = { id: "myytplayer" };
|
|
swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer",
|
|
"ytapiplayer", "400", "300", "8", null, null, params, atts);
|
|
var captions=0;
|
|
$("#slider").slider({slide:function(event,ui){seek_slide('slide',event.originalEvent,ui.value);},
|
|
stop:function(event,ui){seek_slide('stop',event.originalEvent,ui.value);}});
|
|
|
|
function good() {
|
|
window['console'].log(ytplayer.getCurrentTime());
|
|
}
|
|
|
|
ajax_video=good;
|
|
|
|
loadNewVideo(streams["1.0"], ${ video_time });
|
|
|
|
var l=[]
|
|
for (var key in streams) {
|
|
l.push(key);
|
|
$("#video_speeds").append(" "+key+"X");
|
|
} |