mirror of
https://github.com/videojs/video.js.git
synced 2024-11-30 09:06:49 +02:00
Default incompatibility msg w/ other global options fixes #636
This commit is contained in:
parent
918ee040e1
commit
ff9165b7da
@ -89,7 +89,13 @@ vjs.options = {
|
|||||||
'loadingSpinner': {},
|
'loadingSpinner': {},
|
||||||
'bigPlayButton': {},
|
'bigPlayButton': {},
|
||||||
'controlBar': {}
|
'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
|
// Set CDN Version of swf
|
||||||
|
@ -739,18 +739,8 @@ vjs.Player.prototype.src = function(source){
|
|||||||
this.loadTech(techName, source);
|
this.loadTech(techName, source);
|
||||||
}
|
}
|
||||||
} else {
|
} 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', {
|
this.el_.appendChild(vjs.createEl('p', {
|
||||||
innerHTML: incompatibleMessage
|
innerHTML: this.options()['incompatibleVideoMessage']
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user