From f28fb9119ffae97515073fc2340e693c60f69cee Mon Sep 17 00:00:00 2001 From: Yair Ansbacher Date: Mon, 31 Jan 2022 11:54:31 +0200 Subject: [PATCH] feat(FEC-10548): Low-Latency support (#180) pass `streaming.lowLatencyMode` to shaka Solves FEC-10548 Related to https://github.com/kaltura/playkit-js/pull/631 --- src/dash-adapter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dash-adapter.js b/src/dash-adapter.js index 8b4c7a7b..13504ff0 100644 --- a/src/dash-adapter.js +++ b/src/dash-adapter.js @@ -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;