Skip to content

Commit

Permalink
Fix "ended" video control state on IE
Browse files Browse the repository at this point in the history
Closes #979

Change-Id: I4bd36e99e995be1e8ba7c0588910d2566921b357
  • Loading branch information
joeyparrish committed Dec 4, 2017
1 parent 17cf080 commit c218844
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/common/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ ShakaControls.prototype.init = function(castProxy, onError, notifyCastStatus) {
this.video_.addEventListener(
'pause', this.onPlayStateChange_.bind(this));

// Since videos go into a paused state at the end, Chrome and Edge both fire
// the 'pause' event when a video ends. IE 11 only fires the 'ended' event.
this.video_.addEventListener(
'ended', this.onPlayStateChange_.bind(this));

this.seekBar_.addEventListener(
'mousedown', this.onSeekStart_.bind(this));
this.seekBar_.addEventListener(
Expand Down

0 comments on commit c218844

Please sign in to comment.