javascript - canPlayType always returning maybe? Am I missing something? -


i'm using canplaytype() determine if browser can play specific video format before load video tag, when test it, returns "maybe" video formats. code below. missing something?

canitplay1 = document.getelementbyid('intro_video').canplaytype('video/webm'); canitplay2 = document.getelementbyid('intro_video').canplaytype('video/ogg'); canitplay3 = document.getelementbyid('intro_video').canplaytype('video/mp4');  alert("can play type? "+canitplay1+canitplay2+canitplay3); 

try use codecs, along type while alling canplaytype() canplaytype('video/webm',codecs ="mp4a.40.5"). if include codecs, "probably" result.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -