embed mp4 no ff/ie

This commit is contained in:
cat 2015-10-08 14:31:38 +02:00 committed by Thulinma
parent c20b8f2081
commit 67dc1848e7

View file

@ -37,6 +37,19 @@ function mistembed(streamname) {
function html5_video_type(type) { function html5_video_type(type) {
var support = false; var support = false;
if (type == 'mp4') {
if (navigator.userAgent.indexOf('Firefox') > -1) {
//firefox claims to support MP4 but doesn't
return false;
}
else if ((navigator.userAgent.indexOf('MSIE') > -1) && (parseInt(navigator.userAgent.split('MSIE')[1]) <= 9)) {
//IE <= 9 doesn't either
return false;
}
}
try { try {
var v = document.createElement('video'); var v = document.createElement('video');