Skip to content

Commit

Permalink
fix(FEC-13209): [Audio Player] adjust full size player UI to entries …
Browse files Browse the repository at this point in the history
…of audio media type
  • Loading branch information
SivanA-Kaltura authored Sep 12, 2023
1 parent 4dc8107 commit 51ca9be
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
4 changes: 4 additions & 0 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ class KalturaPlayer extends FakeEventTarget {
return hasImageSource(this.sources);
}

isAudio(): boolean {
return this._localPlayer.isAudio();
}

seekToLiveEdge(): void {
this._localPlayer.seekToLiveEdge();
}
Expand Down
50 changes: 27 additions & 23 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export interface SourcesMetadata {
entryId?: string;
name?: string;
description?: string;
mediaType?: string,
mediaType?: string;
metas?: Object;
tags?: Object;
epgId?: string;
Expand All @@ -140,16 +140,13 @@ export interface SourcesMetadata {
export interface MediaSourceObject {
mimetype: string;
url: string;
id?: string,
id?: string;
bandwidth?: number;
width?: number;
height?: number;
drmData?: any[];
}




declare module PlaykitUI {
export class EventManager {
listen: (target: Target, event: string, cb: CallbackFunction) => void;
Expand Down Expand Up @@ -189,24 +186,24 @@ declare module PlaykitUI {
};

export const ReservedPresetAreas: {
PlayerArea: 'PlayerArea',
PresetArea: 'PresetArea',
InteractiveArea: 'InteractiveArea',
VideoArea: 'VideoArea',
GuiArea: 'GuiArea',
TopBar: 'TopBar',
BottomBar: 'BottomBar',
PresetFloating: 'PresetFloating',
TopBarLeftControls: 'TopBarLeftControls',
TopBarRightControls: 'TopBarRightControls',
BottomBarLeftControls: 'BottomBarLeftControls',
BottomBarRightControls: 'BottomBarRightControls',
SidePanelTop: 'SidePanelTop',
SidePanelLeft: 'SidePanelLeft',
SidePanelRight: 'SidePanelRight',
SidePanelBottom: 'SidePanelBottom',
SeekBar: 'SeekBar',
LoadingSpinner: 'LoadingSpinner'
PlayerArea: 'PlayerArea';
PresetArea: 'PresetArea';
InteractiveArea: 'InteractiveArea';
VideoArea: 'VideoArea';
GuiArea: 'GuiArea';
TopBar: 'TopBar';
BottomBar: 'BottomBar';
PresetFloating: 'PresetFloating';
TopBarLeftControls: 'TopBarLeftControls';
TopBarRightControls: 'TopBarRightControls';
BottomBarLeftControls: 'BottomBarLeftControls';
BottomBarRightControls: 'BottomBarRightControls';
SidePanelTop: 'SidePanelTop';
SidePanelLeft: 'SidePanelLeft';
SidePanelRight: 'SidePanelRight';
SidePanelBottom: 'SidePanelBottom';
SeekBar: 'SeekBar';
LoadingSpinner: 'LoadingSpinner';
};

export const reducers: {
Expand Down Expand Up @@ -252,6 +249,13 @@ declare module PlaykitUI {
};

export const Components: {
ExpandableText: preactLib.ComponentClass<{
text: string;
lines: number;
forceShowMore?: boolean;
onClick?: () => void;
children: preactLib.ComponentChildren;
}>;
Tooltip: preactLib.ComponentClass<{label: string}>;
Icon: preactLib.ComponentClass<{
id: string | number;
Expand Down

0 comments on commit 51ca9be

Please sign in to comment.