Skip to content

Commit

Permalink
feat(FEC-13507): Doc media type enums (#764)
Browse files Browse the repository at this point in the history
* feat(FEC-13507): add doc stream type

* feat(FEC-13507): add types for doc stream

* feat(FEC-13507): add missed type

* feat(FEC-13507): address PR comments

* feat(FEC-13507): address PR comments

---------

Co-authored-by: Sergey Marchenko <sergey.dnepro@gmail.com>
  • Loading branch information
semarche-kaltura and semarche authored Jan 23, 2024
1 parent ea28e37 commit df6fd72
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions flow-typed/types/sources-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ declare type PKSourcesConfigObject = {
dash: Array<PKMediaSourceObject>,
progressive: Array<PKMediaSourceObject>,
image: Array<PKMediaSourceObject>,
document: Array<PKMediaSourceObject>,
captions?: Array<PKExternalCaptionObject>,
thumbnails?: PKExternalThumbnailsConfig,
options: PKMediaSourceOptionsObject,
Expand Down
3 changes: 2 additions & 1 deletion src/engines/engine-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export const EngineType = {
SILVERLIGHT: 'silverlight',
CAST: 'cast',
YOUTUBE: 'youtube',
IMAGE: 'image'
IMAGE: 'image',
DOCUMENT: 'document'
} as const;
3 changes: 2 additions & 1 deletion src/engines/stream-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export const StreamType = {
DASH: 'dash',
HLS: 'hls',
PROGRESSIVE: 'progressive',
IMAGE: 'image'
IMAGE: 'image',
DOCUMENT: 'document'
} as const;
1 change: 1 addition & 0 deletions src/enums/media-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const MediaType = {
LIVE: 'Live',
AUDIO: 'Audio',
IMAGE: 'Image',
DOCUMENT: 'Document',
UNKNOWN: 'Unknown'
} as const;
1 change: 1 addition & 0 deletions src/types/sources-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type PKSourcesConfigObject = {
dash: Array<PKMediaSourceObject>,
progressive: Array<PKMediaSourceObject>,
image: Array<PKMediaSourceObject>,
document: Array<PKMediaSourceObject>,
captions?: Array<PKExternalCaptionObject>,
thumbnails?: PKExternalThumbnailsConfig,
options: PKMediaSourceOptionsObject,
Expand Down
4 changes: 2 additions & 2 deletions src/types/stream-types.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export type PlayerStreamTypes = 'dash' | 'hls' | 'progressive' | 'image';
export type PKStreamTypes = Record<'DASH' | 'HLS' | 'PROGRESSIVE' | 'IMAGE', PlayerStreamTypes>;
export type PlayerStreamTypes = 'dash' | 'hls' | 'progressive' | 'image' | 'document';
export type PKStreamTypes = Record<'DASH' | 'HLS' | 'PROGRESSIVE' | 'IMAGE' | 'DOCUMENT', PlayerStreamTypes>;

0 comments on commit df6fd72

Please sign in to comment.