Embed: fixed checkCombo
This commit is contained in:
parent
35a98178f1
commit
9d274fd64b
2 changed files with 17 additions and 10 deletions
File diff suppressed because one or more lines are too long
|
@ -111,14 +111,7 @@ function MistVideo(streamName,options) {
|
||||||
|
|
||||||
var source = false;
|
var source = false;
|
||||||
var mistPlayer = false;
|
var mistPlayer = false;
|
||||||
|
|
||||||
if (options.startCombo) {
|
|
||||||
options.startCombo.started = {
|
|
||||||
player: false,
|
|
||||||
source: false
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
//retrieve the sources we can loop over
|
//retrieve the sources we can loop over
|
||||||
var sources;
|
var sources;
|
||||||
if (options.forceSource) {
|
if (options.forceSource) {
|
||||||
|
@ -199,6 +192,20 @@ function MistVideo(streamName,options) {
|
||||||
current: false
|
current: false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (options.startCombo) {
|
||||||
|
options.startCombo.started = {
|
||||||
|
player: false,
|
||||||
|
source: false
|
||||||
|
};
|
||||||
|
for (var i = 0; i < players.length; i++) {
|
||||||
|
if (players[i].shortname == options.startCombo.player) {
|
||||||
|
options.startCombo.player = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function checkStartCombo(which) {
|
function checkStartCombo(which) {
|
||||||
if ((options.startCombo) && (!options.startCombo.started[which])) {
|
if ((options.startCombo) && (!options.startCombo.started[which])) {
|
||||||
|
@ -952,6 +959,7 @@ function MistVideo(streamName,options) {
|
||||||
socket.die = false;
|
socket.die = false;
|
||||||
socket.destroy = function(){
|
socket.destroy = function(){
|
||||||
this.die = true;
|
this.die = true;
|
||||||
|
this.onclose = function(){};
|
||||||
this.close();
|
this.close();
|
||||||
};
|
};
|
||||||
socket.onopen = function(e){
|
socket.onopen = function(e){
|
||||||
|
@ -1045,7 +1053,6 @@ function MistVideo(streamName,options) {
|
||||||
MistVideo.reporting.stats.set("lastError",e.message);
|
MistVideo.reporting.stats.set("lastError",e.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (Object && Object.defineProperty) {
|
if (Object && Object.defineProperty) {
|
||||||
var timeWaiting = 0;
|
var timeWaiting = 0;
|
||||||
var waitingSince = false;
|
var waitingSince = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue