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

Default incompatibility msg w/ other global options fixes #636

This commit is contained in:
Jeremy Elbourn 2013-08-05 14:19:20 -04:00
parent 918ee040e1
commit ff9165b7da
2 changed files with 8 additions and 12 deletions

View File

@ -89,7 +89,13 @@ vjs.options = {
'loadingSpinner': {},
'bigPlayButton': {},
'controlBar': {}
}
},
// Default message to show when a video cannot be played.
incompatibleVideoMessage: 'Sorry, no compatible source and playback ' +
'technology were found for this video. Try using another browser ' +
'like <a href="http://bit.ly/ccMUEC">Chrome</a> or download the ' +
'latest <a href="http://adobe.ly/mwfN1">Adobe Flash Player</a>.'
};
// Set CDN Version of swf

View File

@ -739,18 +739,8 @@ vjs.Player.prototype.src = function(source){
this.loadTech(techName, source);
}
} else {
var incompatibleMessage;
if (videojs.options['incompatibleVideoMessage']) {
incompatibleMessage = vjs.options['incompatibleVideoMessage'];
} else {
incompatibleMessage = 'Sorry, no compatible source and playback ' +
'technology were found for this video. Try using another browser ' +
'like <a href="http://bit.ly/ccMUEC">Chrome</a> or download the ' +
'latest <a href="http://adobe.ly/mwfN1">Adobe Flash Player</a>.';
}
this.el_.appendChild(vjs.createEl('p', {
innerHTML: incompatibleMessage
innerHTML: this.options()['incompatibleVideoMessage']
}));
}