Skip to content

Commit

Permalink
fix: add enableCachedUrls configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura authored Jul 24, 2024
1 parent 56a00a8 commit 65fdf75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kaltura-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,9 @@ export class KalturaPlayer extends FakeEventTarget {
}

public setCachedUrls(urls: string[]): void {
this._localPlayer.setCachedUrls(urls);
if (this.config.playback.enableCachedUrls) {
this._localPlayer.setCachedUrls(urls);
}
}

public get sessionIdCache(): SessionIdCache | null {
Expand Down
1 change: 1 addition & 0 deletions src/types/playback-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import { PKPlaybackConfigObject } from '@playkit-js/playkit-js';
export interface PlaybackConfig extends PKPlaybackConfigObject {
autopause: boolean;
loop: boolean;
enableCachedUrls: boolean;
}

0 comments on commit 65fdf75

Please sign in to comment.