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 a95cad6 commit 78c2401
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 @@ -507,7 +507,7 @@ export default class NativeAdapter extends BaseMediaSourceAdapter {
}

_setStartTime(startTime: ?number) {
if (startTime && startTime > -1) {
if (typeof startTime === 'number' && startTime > -1) {
this._videoElement.currentTime = startTime;
}
this._wasCurrentTimeSetSuccessfully = true;
Expand Down

0 comments on commit 78c2401

Please sign in to comment.