Skip to content

Commit

Permalink
feat(FEC-10548): Low-Latency support (#160)
Browse files Browse the repository at this point in the history
pass `streaming.lowLatencyMode` to hlsjs

Solves FEC-10548

Related to kaltura/playkit-js#631
  • Loading branch information
TasvirChi authored and tasvirchi-gitaction committed Jan 31, 2022
1 parent 6d0d446 commit 36a9e2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hls-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ export default class HlsAdapter extends BaseMediaSourceAdapter {
Utils.Object.createPropertyPath(adapterConfig, 'abr.restrictions', abr.restrictions);
}
}
if (Utils.Object.hasPropertyPath(config, 'streaming.lowLatencyMode')) {
adapterConfig.hlsConfig.lowLatencyMode = Utils.Object.getPropertyPath(config, 'streaming.lowLatencyMode');
}
if (Utils.Object.hasPropertyPath(config, 'playback.options.html5.hls')) {
Utils.Object.mergeDeep(adapterConfig.hlsConfig, config.playback.options.html5.hls);
}
Expand Down

0 comments on commit 36a9e2d

Please sign in to comment.