Skip to content

Commit

Permalink
fix(FEC-13119): update Kaltura-player TS types - relevant for SEO (#643)
Browse files Browse the repository at this point in the history
update Kaltura-player TS types - relevant for SEO
  • Loading branch information
JonathanTGold authored Jul 20, 2023
1 parent 2d454f8 commit 8b9c7a5
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare module '@playkit-js/kaltura-player-js' {
readonly CAPTURING_PHASE: number;
readonly NONE: number;
readonly bubbles: boolean;
cancelBubble: boolean;
readonly cancelBubble: boolean;
readonly cancelable: boolean;
readonly composed: boolean;
readonly currentTarget: EventTarget | null;
Expand Down Expand Up @@ -65,6 +65,7 @@ export class KalturaPlayer {
public get Event(): EventTypes;
public get paused(): boolean;
public get sources(): Sources;
public get selectedSource(): MediaSourceObject;
public configure(config: Object): void;
public ready(): Promise<void>;
public load(): void;
Expand Down Expand Up @@ -105,9 +106,9 @@ export interface EventTypes {
}

export interface Sources {
hls: any[];
dash: any[];
progressive: any[];
hls: MediaSourceObject[];
dash: MediaSourceObject[];
progressive: MediaSourceObject[];
image: any[];
captions?: any[];
thumbnails?: any;
Expand All @@ -131,9 +132,22 @@ export interface SourcesMetadata {
metas?: Object;
tags?: Object;
epgId?: string;
recordingId?: string
recordingId?: string;
createdAt?: number;
endDate?: number;
}

export interface MediaSourceObject {
mimetype: string;
url: string;
id?: string,
bandwidth?: number;
width?: number;
height?: number;
drmData?: any[];
}




declare module PlaykitUI {
Expand Down

0 comments on commit 8b9c7a5

Please sign in to comment.