oncanplay = function() { if (status == "defalut") { var timeupdate = cookie.exec("timeupdate") || false; if (timeupdate && video.currentSrc == timeupdate.split(', ')[0]) { this.currentTime = timeupdate.split(', ')[1]; } } isCanplay = true; videoLoading.hide(); videoControl.animate({ bottom: 0 }, "slow"); },
ontimeupdate = function() { var max = getTime(this.duration); var time = getTime(this.currentTime, this.duration); jQuery.each(video.textlist, function(i, value) { if (parseFloat(time) >= value.start && parseFloat(time) <= value.end) { jQuery(video.textbox).html(value.text).show(); } else if (value.end < parseFloat(time)) { jQuery(video.textbox).hide(); } }); cookie.exec("timeupdate", "" + video.currentSrc + ", " + this.currentTime + ""); timelen.show().html(time + "/" + (max && max != "Infinity" ? max : "...")); var left = (this.currentTime / this.duration) * videoSlider.width(); left = left <= 10 ? 0 : left - 10 >= videoSlider.width() ? left - 10 : left; playtime[0].value = this.currentTime; videoSliderButton.css({ "left": left }); videoSliderpro.css({ "width": left + 10 }); },