Skip to content

Commit

Permalink
fix(FEC-10681): pre roll stuck half way or doesn't allow the content …
Browse files Browse the repository at this point in the history
…to start playing on iphone and chrome (#509)

Don't pause once ready. 
This was right before the load was middleware. 
Also, it's redundant because the player it's already paused and moved to the `PAUSED` state by `METADATA_LOADED` 

Solves FEC-10681
  • Loading branch information
yairans authored Nov 23, 2020
1 parent 9cbf0cf commit 6f5ded1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,6 @@ export default class Player extends FakeEventTarget {
Player._logger.warn('Autoplay failed, pause player');
this._posterManager.show();
this.load();
this.ready().then(() => this.pause());
this.dispatchEvent(new FakeEvent(CustomEventType.AUTOPLAY_FAILED));
};
}
Expand Down

0 comments on commit 6f5ded1

Please sign in to comment.