diff --git a/lib/media/media_source_engine.js b/lib/media/media_source_engine.js index fc032b71a8..5c0187d1cb 100644 --- a/lib/media/media_source_engine.js +++ b/lib/media/media_source_engine.js @@ -183,6 +183,8 @@ shaka.media.MediaSourceEngine = class { * @return {!MediaSource} */ createMediaSource(p) { + this.streamingAllowed_ = true; + /** @type {!MediaSource} */ let mediaSource; @@ -193,11 +195,13 @@ shaka.media.MediaSourceEngine = class { this.eventManager_.listen( mediaSource, 'startstreaming', () => { + shaka.log.info('MMS startstreaming'); this.streamingAllowed_ = true; }); this.eventManager_.listen( mediaSource, 'endstreaming', () => { + shaka.log.info('MMS endstreaming'); this.streamingAllowed_ = false; }); } else {