diff --git a/src/js/core.js b/src/js/core.js
index 28f047765..eb58a67d0 100644
--- a/src/js/core.js
+++ b/src/js/core.js
@@ -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 Chrome or download the ' +
+ 'latest Adobe Flash Player.'
};
// Set CDN Version of swf
diff --git a/src/js/player.js b/src/js/player.js
index 3d64220c0..ac648f130 100644
--- a/src/js/player.js
+++ b/src/js/player.js
@@ -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 Chrome or download the ' +
- 'latest Adobe Flash Player.';
- }
-
this.el_.appendChild(vjs.createEl('p', {
- innerHTML: incompatibleMessage
+ innerHTML: this.options()['incompatibleVideoMessage']
}));
}