Skip to content

Commit

Permalink
Properly handle stop event
Browse files Browse the repository at this point in the history
  • Loading branch information
YouKnowBlom committed Aug 6, 2020
1 parent 247883a commit 8c8cf59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/maincontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ mgr.addEventListener('PAUSE', mgr.defaultOnPause);
mgr.defaultOnStop = function (event) {
playbackMgr.stop();
};

mgr.addEventListener(cast.framework.events.EventType.MEDIA_FINISHED, mgr.defaultOnStop);
mgr.addEventListener('ABORT', mgr.defaultOnStop);

mgr.addEventListener('ENDED', function () {
Expand Down

0 comments on commit 8c8cf59

Please sign in to comment.