Skip to content

Commit

Permalink
fix: Resolve an issue where 'error' events triggered on the player du…
Browse files Browse the repository at this point in the history
…ring contrib-ads playback would not be recognized. (#109)
  • Loading branch information
misteroneill authored Sep 6, 2017
1 parent 3cb9c1e commit 3b48430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const initPlugin = function(player, options) {
player.off('play', onPlayStartMonitor);
player.off('play', onPlayNoSource);
player.off('dispose', onDisposeHandler);
player.off('error', onErrorHandler);
player.off(['aderror', 'error'], onErrorHandler);
};

const reInitPlugin = function(newOptions) {
Expand All @@ -300,7 +300,7 @@ const initPlugin = function(player, options) {
player.on('play', onPlayStartMonitor);
player.on('play', onPlayNoSource);
player.on('dispose', onDisposeHandler);
player.on('error', onErrorHandler);
player.on(['aderror', 'error'], onErrorHandler);

player.ready(() => {
player.addClass('vjs-errors');
Expand Down

0 comments on commit 3b48430

Please sign in to comment.