Skip to content

Commit

Permalink
fix(FEC-13108): Start time can't be set to 0 in loadMedia for live wi…
Browse files Browse the repository at this point in the history
…th dvr
  • Loading branch information
SivanA-Kaltura authored May 29, 2023
1 parent 252e4a8 commit d041ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
this._loadPromise = new Promise((resolve, reject) => {
if (this._sourceObj && this._sourceObj.url) {
this._trigger(EventType.ABR_MODE_CHANGED, {mode: this.isAdaptiveBitrateEnabled() ? 'auto' : 'manual'});
let shakaStartTime = startTime && startTime > -1 ? startTime : undefined;
let shakaStartTime = typeof startTime === 'number' && startTime > -1 ? startTime : undefined;
shakaStartTime = isNaN(this._lastTimeDetach) ? shakaStartTime : this._lastTimeDetach;
this._lastTimeDetach = NaN;
this._maybeGetRedirectedUrl(this._sourceObj.url)
Expand Down

0 comments on commit d041ba8

Please sign in to comment.