mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Made flashIsDominant work.
This commit is contained in:
parent
c211869e6a
commit
ef08a3f71b
4
video.js
4
video.js
@ -64,6 +64,9 @@ var VideoJS = _V_ = JRClass.extend({
|
||||
this.hideLinksFallback(); // Will be shown again if "links" player is used
|
||||
this.flashObject = this.getFlashObject();
|
||||
|
||||
// Make Flash first player in line
|
||||
if (this.options.flashIsDominant) { this.options.players.unshift("flashObject") }
|
||||
|
||||
// Loop through the player names list in options, "html5" etc.
|
||||
// For each player name, initialize the player with that name under VideoJS.players
|
||||
// If the player successfully initializes, we're done
|
||||
@ -1149,6 +1152,7 @@ VideoJS.players = {
|
||||
// Check if object exists & Flash Player version is supported
|
||||
if (this.flashObject && this.flashVersionSupported()) {
|
||||
this.replaceWithFlash();
|
||||
this.video.src = ""; // Stop video from downloading if HTML5 is still supported
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user