Skip to content

Commit

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

Solves FEC-10548

Related to kaltura/playkit-js#631
  • Loading branch information
yairans authored Jan 31, 2022
1 parent 0aff340 commit f28fb91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
if (Utils.Object.hasPropertyPath(config, 'text.useShakaTextTrackDisplay')) {
adapterConfig.useShakaTextTrackDisplay = Utils.Object.getPropertyPath(config, 'text.useShakaTextTrackDisplay');
}
if (Utils.Object.hasPropertyPath(config, 'streaming.forceBreakStall')) {
if (Utils.Object.hasPropertyPath(config, 'streaming')) {
adapterConfig.forceBreakStall = Utils.Object.getPropertyPath(config, 'streaming.forceBreakStall');
adapterConfig.shakaConfig.streaming.lowLatencyMode = Utils.Object.getPropertyPath(config, 'streaming.lowLatencyMode');
}
if (Utils.Object.hasPropertyPath(config, 'sources.options')) {
const options = config.sources.options;
Expand Down

0 comments on commit f28fb91

Please sign in to comment.