forward script params to video url
This commit is contained in:
parent
63f9fb52a5
commit
2919e74d4e
2 changed files with 9 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<title>Test the stream embedding</title>
|
||||
<style></style>
|
||||
<script src=plugins/jquery.js></script>
|
||||
<script src='../src/embed.js'></script>
|
||||
<script src='../src/embed.js?video=0'></script>
|
||||
<script>
|
||||
var embed_settings = {};
|
||||
$(function(){
|
||||
|
@ -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';
|
||||
info.src = 'http://'+(window.location.hostname == '' ? 'localhost' : window.location.hostname)+':8080/info_'+streamName+'.js?video=0';
|
||||
document.getElementById('embedcontainer').appendChild(info);
|
||||
info.onload = function(){
|
||||
if (embedtype == '') {
|
||||
|
|
|
@ -285,6 +285,13 @@ function mistembed(streamname) {
|
|||
source.url += urlappend;
|
||||
source.relurl += urlappend;
|
||||
}
|
||||
else if (me.src.indexOf('?') != -1) {
|
||||
var params = me.src.split('?');
|
||||
params.shift();
|
||||
params.join('?');
|
||||
source.url += '?'+params;
|
||||
source.relurl += '?'+params;
|
||||
}
|
||||
buildPlayer(source, container, video.width, video.height, vtype);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue