From 67dc1848e7d4f6f95fd8f3f93dae005a72b7c649 Mon Sep 17 00:00:00 2001 From: cat Date: Thu, 8 Oct 2015 14:31:38 +0200 Subject: [PATCH] embed mp4 no ff/ie --- src/embed.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/embed.js b/src/embed.js index 99b213dd..5f99eaad 100644 --- a/src/embed.js +++ b/src/embed.js @@ -37,6 +37,19 @@ function mistembed(streamname) { function html5_video_type(type) { 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 { var v = document.createElement('video');