Skip to content

Commit

Permalink
feat: create defaultOptions getter
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopaulovieira committed Jan 31, 2021
1 parent 5baf051 commit 809e8e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export default class HlsjsPlayback extends HTML5Video {
return this._hls && this._hls.bandwidthEstimate
}

get defaultOptions() {
return { loadSourceBeforePlay: true }
}

static get HLSJS() {
return HLSJS
}
Expand Down

0 comments on commit 809e8e1

Please sign in to comment.