Skip to content

Commit

Permalink
fix(FEC-12189): Stream doesn't start if open a program with a bookmark (
Browse files Browse the repository at this point in the history
#211)

related pr: kaltura/playkit-js#652

Following the removal of the LowLatencyMode from the default configuration here, we need to check if the field exists, otherwise, it will return undefined
  • Loading branch information
JonathanTGold committed Oct 2, 2022
1 parent 1041b0a commit 9d300bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,13 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
adapterConfig.useShakaTextTrackDisplay = Utils.Object.getPropertyPath(config, 'text.useShakaTextTrackDisplay');
}
if (Utils.Object.hasPropertyPath(config, 'streaming')) {
adapterConfig.forceBreakStall = Utils.Object.getPropertyPath(config, 'streaming.forceBreakStall');
adapterConfig.lowLatencyMode = Utils.Object.getPropertyPath(config, 'streaming.lowLatencyMode');
const {streaming} = config;
if (typeof streaming.forceBreakStall === 'boolean') {
adapterConfig.forceBreakStall = streaming.forceBreakStall;
}
if (typeof streaming.lowLatencyMode === 'boolean') {
adapterConfig.lowLatencyMode = streaming.lowLatencyMode;
}
}
if (Utils.Object.hasPropertyPath(config, 'sources.options')) {
const options = config.sources.options;
Expand Down

0 comments on commit 9d300bc

Please sign in to comment.