LSP/embed: fix for + in filenames in folder streams

This commit is contained in:
cat 2016-07-21 11:35:00 +02:00 committed by Thulinma
parent e1fac6248e
commit b7c37ba60d
3 changed files with 18 additions and 10 deletions

View file

@ -14,7 +14,7 @@
var embedtype = $('input[name=force]').val();
var info = document.createElement('script');
info.src = 'http://'+(window.location.hostname == '' ? 'localhost' : window.location.hostname)+':8080/info_'+streamName+'.js?video=0';
info.src = 'http://'+(window.location.hostname == '' ? 'localhost' : window.location.hostname)+':8080/info_'+encodeURIComponent(streamName)+'.js';
document.getElementById('embedcontainer').appendChild(info);
info.onload = function(){
if (embedtype == '') {
@ -45,4 +45,4 @@
<div id=embedcontainer style="width: 100%; height: 35em;" data-forcesupportcheck data-autoplay>
</div>
</body>
</html>
</html>