HTML and CSS Reference
In-Depth Information
formats {
h264 : 'video/mp4; codecs "avc1.42E01E, mp4a.40.2"',
theora : 'video/ogg; codecs "theora, vorbis"',
;
for(posinformats)
{
video document.createElement('video');
if(!!(video.canPlayType&&
video.canPlayType(formats[pos]).replace(/no/, '')))
msg + pos + ' wird unterst├╝tzt<br/>';
else
msg + pos + ' wird nicht unterst├╝tzt<br/>';
}
}
detectionNode.innerHTML msg;
if(!$i.hasVideo())
return;
var movie document.getElementById('movie');
document.getElementById('load').addEventListener('click',
function(e) {
movie.load();
},false);
document.getElementById('play').addEventListener('click',
function(e) {
movie.play();
},false);
document.getElementById('pause').addEventListener('click',
function(e) {
movie.pause();
},false);
movie.addEventListener('progress',function(e){
var soFar parseInt(((movie.buffered.end(0) /
movie.duration) * 100));
document.getElementById("status").innerHTML soFar + '%';
},false);
movie.addEventListener('canplaythrough',function(e){
movie.play();
},false);
movie.addEventListener('loadedmetadata',function(e){
alert('size: ' + movie.videoWidth + '/' + movie.videoHeight);
},false);
};
$i.hasVideo function()
Search WWH ::




Custom Search