Skip to content

Commit

Permalink
Merge pull request #771 from jwplayer/bugfix/instream-transition
Browse files Browse the repository at this point in the history
Change state transition for instream item complete
  • Loading branch information
donato committed Sep 29, 2015
2 parents 7c4bd5a + 64111c5 commit 44b2fd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/controller/instream-adapter.js
Expand Up @@ -128,10 +128,11 @@ define([
}

function _instreamItemComplete(e) {
// Allow 'play' state change to trigger next adPlay event in ad pods
_instream._adModel.set('state', 'complete');

if (_array && _arrayIndex + 1 < _array.length) {
// We want a play event for the next item, so we ensure the state != playing
_instream._adModel.set('state', 'buffering');

// destroy skip button
_model.set('skipButton', false);

Expand Down

0 comments on commit 44b2fd6

Please sign in to comment.