Skip to content

Commit

Permalink
Merge pull request #1525 from vagnervjs/fix/hls-config
Browse files Browse the repository at this point in the history
Fix HLS playback options
  • Loading branch information
towerz committed Oct 31, 2017
2 parents 5ca3db4 + 3d19d4e commit ce64e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playbacks/hls/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export default class HLS extends HTML5VideoPlayback {
// seeks to areas after this point sometimes have issues
if (this._playbackType === Playback.LIVE) {
let fragmentTargetDuration = data.details.targetduration
let hlsjsConfig = this.options.playback || {}
let hlsjsConfig = this.options.playback.hlsjsConfig || {}
let liveSyncDurationCount = hlsjsConfig.liveSyncDurationCount || HLSJS.DefaultConfig.liveSyncDurationCount
let hiddenAreaDuration = fragmentTargetDuration * liveSyncDurationCount
if (hiddenAreaDuration <= newDuration) {
Expand Down

0 comments on commit ce64e73

Please sign in to comment.