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>
|
<title>Test the stream embedding</title>
|
||||||
<style></style>
|
<style></style>
|
||||||
<script src=plugins/jquery.js></script>
|
<script src=plugins/jquery.js></script>
|
||||||
<script src='../src/embed.js'></script>
|
<script src='../src/embed.js?video=0'></script>
|
||||||
<script>
|
<script>
|
||||||
var embed_settings = {};
|
var embed_settings = {};
|
||||||
$(function(){
|
$(function(){
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
var embedtype = $('input[name=force]').val();
|
var embedtype = $('input[name=force]').val();
|
||||||
|
|
||||||
var info = document.createElement('script');
|
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);
|
document.getElementById('embedcontainer').appendChild(info);
|
||||||
info.onload = function(){
|
info.onload = function(){
|
||||||
if (embedtype == '') {
|
if (embedtype == '') {
|
||||||
|
|
|
@ -285,6 +285,13 @@ function mistembed(streamname) {
|
||||||
source.url += urlappend;
|
source.url += urlappend;
|
||||||
source.relurl += 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);
|
buildPlayer(source, container, video.width, video.height, vtype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue