1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-17 21:18:27 +02:00

Update src/player.js

A nice feedback message for users who don't have a compatible HTML5 browser or Flash Player.
This commit is contained in:
Annika Lindstedt 2012-10-31 16:19:20 +01:00
parent 8eba022c0c
commit 609ecf1f10

View File

@ -771,7 +771,12 @@ _V_.Player = _V_.Component.extend({
this.loadTech(techName, source);
}
} else {
_V_.log("No compatible source and playback technology were found.")
_V_.log("No compatible source and playback technology were found.");
var fallbackInfo = _V_.createElement("div", {
innerHTML: "Sorry, no compatible source and playback technology were found for this video. Try using another browser like <a href='http://www.google.com/chrome'>Google Chrome</a> or download the latest <a href='http://get.adobe.com/flashplayer/'>Adobe Flash Player</a>."
});
fallbackInfo.style.cssText = "color:#ffffff;font-size:13px;";
this.el.appendChild(fallbackInfo);
}
// Case: Source object { src: "", type: "" ... }