1
0
mirror of https://github.com/videojs/video.js.git synced 2025-04-07 07:19:54 +02:00

Merge pull request #236 from lindstedt/master

Feedback message when user can't view video
This commit is contained in:
Steve Heffernan 2013-01-10 13:43:05 -08:00
commit 77d9d34f91

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: "" ... }