Skip to content

Commit

Permalink
fix(SUP-41054): Playlist Chapter display issue with Live to VOD (#768)
Browse files Browse the repository at this point in the history
Description of the Changes
Add mediaEntryType under source-config

Part of #379

Solves SUP-41054
  • Loading branch information
Tzipi-kaltura authored Feb 20, 2024
1 parent 0744337 commit 8df66e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/enums/media-type.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
export const MediaType = {
import {PKMediaTypes} from '../types/media-types';

const MediaType: PKMediaTypes = {
VOD: 'Vod',
LIVE: 'Live',
AUDIO: 'Audio',
IMAGE: 'Image',
DOCUMENT: 'Document',
UNKNOWN: 'Unknown'
} as const;
};
export {MediaType};
1 change: 1 addition & 0 deletions src/types/media-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type PKMediaTypes = {[type: string]: string};
4 changes: 3 additions & 1 deletion src/types/sources-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {PKExternalThumbnailsConfig} from './exteranl-thumbnails-object';
import {PKMediaSourceOptionsObject} from './media-source-options';
import {PKMetadataConfigObject} from './metadata-config';
import {ImageSourceOptions} from './image-player-options';
import {PKMediaTypes} from "./media-types";

export type PKSourcesConfigObject = {
hls: Array<PKMediaSourceObject>,
Expand All @@ -24,5 +25,6 @@ export type PKSourcesConfigObject = {
vr?: any,
imageSourceOptions?: ImageSourceOptions,
seekFrom?: number,
clipTo?: number
clipTo?: number,
mediaEntryType?: PKMediaTypes
};

0 comments on commit 8df66e2

Please sign in to comment.