javascript - Is a Youtube buffer finish event possible -
is possible detect finish of youtube buffering through javascript? here http://code.google.com/intl/de-de/apis/youtube/js_api_reference.html lot of methods no 1 has event says "finished buffering".
var ytplayer; function onyoutubeplayerready(playerid) { ytplayer = document.getelementbyid("myytplayer"); checkbuffer(); } function checkbuffer(){ if(ytplayer.getvideobytesloaded() == ytplayer.getvideobytestotal()){ alert('buffer complete!'); }else{ var t = settimeout(function(){ editor.split(); },1000); } }
Comments
Post a Comment