Skip to content

Commit

Permalink
feat: call bindCustomListeners on _setup method
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulovieira committed May 13, 2021
1 parent 2d31cdf commit b5c0b78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ export default class HlsjsPlayback extends HTML5Video {
this._hls.on(HLSJS.Events.ERROR, (evt, data) => this._onHLSJSError(evt, data))
this._hls.on(HLSJS.Events.SUBTITLE_TRACK_LOADED, (evt, data) => this._onSubtitleLoaded(evt, data))
this._hls.on(HLSJS.Events.SUBTITLE_TRACKS_UPDATED, () => this._ccTracksUpdated = true)

this.bindCustomListeners()

this._hls.attachMedia(this.el)
}

Expand Down

0 comments on commit b5c0b78

Please sign in to comment.