Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura committed Nov 11, 2024
1 parent e962019 commit cad0346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2919,10 +2919,10 @@ export default class Player extends FakeEventTarget {
}

public setSeekFrom(seekFrom: number): void {
this._externalCaptionsHandler?.setSeekFrom(seekFrom);
this._externalCaptionsHandler.seekFrom = seekFrom;
}

public setClipTo(clipTo: number): void {
this._externalCaptionsHandler?.setClipTo(clipTo);
this._externalCaptionsHandler.clipTo = clipTo;
}
}
4 changes: 2 additions & 2 deletions src/track/external-captions-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,11 +618,11 @@ class ExternalCaptionsHandler extends FakeEventTarget {
return cuePoints.filter((cp: any) => cp.startTime >= seekFrom && (!clipTo || cp.startTime < clipTo));
}

public setSeekFrom(seekFrom: number): void {
public set seekFrom(seekFrom: number) {
this._seekFrom = seekFrom;
}

public setClipTo(clipTo: number): void {
public set clipTo(clipTo: number) {
this._clipTo = clipTo;
}

Expand Down

0 comments on commit cad0346

Please sign in to comment.