Skip to content

Commit

Permalink
fix(FEC-12431): [WEB] - [O2CZ] Player_Web_MAC_Safari - The progress b…
Browse files Browse the repository at this point in the history
…ar jumps front and back when seek

Handle a scenario of this._liveEdge (in native-adapter) being 0 in a live stream, which caused isOnLiveEdge to be true when it shouldn't be.
  • Loading branch information
SivanA-Kaltura authored Aug 2, 2022
1 parent 5708668 commit cd181f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/html5/media-source/adapters/native-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ export default class NativeAdapter extends BaseMediaSourceAdapter {
}
} else {
const liveEdge = this._getLiveEdge();
if (this._liveEdge !== liveEdge) {
if (this._liveEdge && this._liveEdge !== liveEdge) {
this._segmentDuration = liveEdge - this._liveEdge;
}
}
Expand Down

0 comments on commit cd181f8

Please sign in to comment.