1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-29 02:57:21 +02:00

Stopped catching errors on player init, because it was causing multiplayers to get started.

This commit is contained in:
Steve Heffernan 2010-11-09 15:04:20 -08:00
parent ff8d052cc3
commit 9fcae08b70

View File

@ -66,11 +66,9 @@ var VideoJS = JRClass.extend({
// If the player successfully initializes, we're done
// If not, try the next player in the list
for (var i=0,players=this.options.players,j=players.length; i<j; i++) {
try {
if((VideoJS.players[players[i]].init.context(this))()) {
break;
}
} catch (e) {} // Catch errors so it tries the next fallback method
if((VideoJS.players[players[i]].init.context(this))()) {
break;
}
}
},
@ -809,7 +807,7 @@ var VideoJS = JRClass.extend({
this.subtitlesSource = tracks[i].getAttribute("src");
}
}
if (this.subtitlesSource !== null) {
if (this.subtitlesSource !== undefined) {
this.loadSubtitles();
this.buildSubtitles();
}