From 718d009f9fe1b57d927bde2d00d31fcd13d73020 Mon Sep 17 00:00:00 2001 From: cat Date: Mon, 19 Oct 2015 16:47:52 +0200 Subject: [PATCH] embed exclude for IE/FF fix --- lsp/test_streamembed.html | 2 +- src/embed.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lsp/test_streamembed.html b/lsp/test_streamembed.html index e0db24b8..c10f2694 100644 --- a/lsp/test_streamembed.html +++ b/lsp/test_streamembed.html @@ -14,7 +14,7 @@ var embedtype = $('input[name=force]').val(); var info = document.createElement('script'); - info.src = 'http://localhost:8080/info_'+streamName+'.js'; + info.src = 'http://'+window.location.hostname+':8080/info_'+streamName+'.js'; document.getElementById('embedcontainer').appendChild(info); info.onload = function(){ if (embedtype == '') { diff --git a/src/embed.js b/src/embed.js index 5f99eaad..0bc6a505 100644 --- a/src/embed.js +++ b/src/embed.js @@ -38,7 +38,7 @@ function mistembed(streamname) { var support = false; - if (type == 'mp4') { + if (type == 'video/mp4') { if (navigator.userAgent.indexOf('Firefox') > -1) { //firefox claims to support MP4 but doesn't return false;