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;