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:
parent
8eba022c0c
commit
609ecf1f10
@ -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: "" ... }
|
||||
|
Loading…
x
Reference in New Issue
Block a user