diff --git a/flow-typed/types/sources-config.js b/flow-typed/types/sources-config.js index 95be48e63..6e71a20c9 100644 --- a/flow-typed/types/sources-config.js +++ b/flow-typed/types/sources-config.js @@ -4,6 +4,7 @@ declare type PKSourcesConfigObject = { dash: Array, progressive: Array, image: Array, + document: Array, captions?: Array, thumbnails?: PKExternalThumbnailsConfig, options: PKMediaSourceOptionsObject, diff --git a/src/engines/engine-type.ts b/src/engines/engine-type.ts index 0aa9070ce..265854980 100644 --- a/src/engines/engine-type.ts +++ b/src/engines/engine-type.ts @@ -4,5 +4,6 @@ export const EngineType = { SILVERLIGHT: 'silverlight', CAST: 'cast', YOUTUBE: 'youtube', - IMAGE: 'image' + IMAGE: 'image', + DOCUMENT: 'document' } as const; diff --git a/src/engines/stream-type.ts b/src/engines/stream-type.ts index b0d3aa159..59f9520e7 100644 --- a/src/engines/stream-type.ts +++ b/src/engines/stream-type.ts @@ -2,5 +2,6 @@ export const StreamType = { DASH: 'dash', HLS: 'hls', PROGRESSIVE: 'progressive', - IMAGE: 'image' + IMAGE: 'image', + DOCUMENT: 'document' } as const; diff --git a/src/enums/media-type.ts b/src/enums/media-type.ts index b739ba0c3..c77a3924a 100644 --- a/src/enums/media-type.ts +++ b/src/enums/media-type.ts @@ -3,5 +3,6 @@ export const MediaType = { LIVE: 'Live', AUDIO: 'Audio', IMAGE: 'Image', + DOCUMENT: 'Document', UNKNOWN: 'Unknown' } as const; diff --git a/src/types/sources-config.ts b/src/types/sources-config.ts index dcfefc50c..2d67ebdee 100644 --- a/src/types/sources-config.ts +++ b/src/types/sources-config.ts @@ -10,6 +10,7 @@ export type PKSourcesConfigObject = { dash: Array, progressive: Array, image: Array, + document: Array, captions?: Array, thumbnails?: PKExternalThumbnailsConfig, options: PKMediaSourceOptionsObject, diff --git a/src/types/stream-types.ts b/src/types/stream-types.ts index baacdf7c7..34b1d3e07 100644 --- a/src/types/stream-types.ts +++ b/src/types/stream-types.ts @@ -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>;