Skip to content

Commit

Permalink
fix(FEC-8108): no playback after preroll - android browser (#216)
Browse files Browse the repository at this point in the history
call to forceUpdate on AUTOPLAY_FAILED event, as the ui must be updated
  • Loading branch information
yairans authored and Dan Ziv committed Apr 9, 2018
1 parent 1141fd1 commit 8b88f06
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class PrePlaybackPlayOverlay extends BaseComponent {
if (this.autoplay === true) {
this.player.addEventListener(this.player.Event.AUTOPLAY_FAILED, () => {
this.autoplay = false;
this.forceUpdate();
});
}
} catch (e) { // eslint-disable-line no-unused-vars
Expand Down

0 comments on commit 8b88f06

Please sign in to comment.