mirror of
https://github.com/videojs/video.js.git
synced 2025-01-17 10:46:00 +02:00
Stopped catching errors on player init, because it was causing multiplayers to get started.
This commit is contained in:
parent
ff8d052cc3
commit
9fcae08b70
10
video.js
10
video.js
@ -66,11 +66,9 @@ var VideoJS = JRClass.extend({
|
|||||||
// If the player successfully initializes, we're done
|
// If the player successfully initializes, we're done
|
||||||
// If not, try the next player in the list
|
// If not, try the next player in the list
|
||||||
for (var i=0,players=this.options.players,j=players.length; i<j; i++) {
|
for (var i=0,players=this.options.players,j=players.length; i<j; i++) {
|
||||||
try {
|
if((VideoJS.players[players[i]].init.context(this))()) {
|
||||||
if((VideoJS.players[players[i]].init.context(this))()) {
|
break;
|
||||||
break;
|
}
|
||||||
}
|
|
||||||
} catch (e) {} // Catch errors so it tries the next fallback method
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -809,7 +807,7 @@ var VideoJS = JRClass.extend({
|
|||||||
this.subtitlesSource = tracks[i].getAttribute("src");
|
this.subtitlesSource = tracks[i].getAttribute("src");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.subtitlesSource !== null) {
|
if (this.subtitlesSource !== undefined) {
|
||||||
this.loadSubtitles();
|
this.loadSubtitles();
|
||||||
this.buildSubtitles();
|
this.buildSubtitles();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user