Skip to content

Commit

Permalink
feat(FEC-12613): Image Entry - Kava Analytics Events (#604)
Browse files Browse the repository at this point in the history
Add isImg public API for let the Analytics plugins knowing the playback type

solves FEC-12613
  • Loading branch information
JonathanTGold authored Feb 8, 2023
1 parent b408390 commit 5fcff2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ class KalturaPlayer extends FakeEventTarget {
return hasImageSource(this.sources) && !(typeof this.config.sources.duration === 'number' && this.config.sources.duration > 0);
}

isImg(): boolean {
return hasImageSource(this.sources);
}

seekToLiveEdge(): void {
this._localPlayer.seekToLiveEdge();
}
Expand Down

0 comments on commit 5fcff2a

Please sign in to comment.