diff --git a/flow-typed/types/image-player-options.js b/flow-typed/types/image-player-options.js new file mode 100644 index 000000000..b5e972623 --- /dev/null +++ b/flow-typed/types/image-player-options.js @@ -0,0 +1,3 @@ +declare type ImageSourceOptions = { + thumbnailAPIParams: { [parmaName: string]: string } +}; diff --git a/flow-typed/types/sources-config.js b/flow-typed/types/sources-config.js index 4626c86c3..387d67899 100644 --- a/flow-typed/types/sources-config.js +++ b/flow-typed/types/sources-config.js @@ -3,6 +3,7 @@ declare type PKSourcesConfigObject = { hls: Array, dash: Array, progressive: Array, + image: Array, captions?: Array, thumbnails?: PKExternalThumbnailsConfig, options: PKMediaSourceOptionsObject, @@ -13,5 +14,6 @@ declare type PKSourcesConfigObject = { poster?: string, duration?: number, startTime?: number, - vr: ?Object + vr: ?Object, + imageSourceOptions?: ImageSourceOptions }; diff --git a/src/engines/stream-type.js b/src/engines/stream-type.js index a6db78c6f..2eeb0f9b8 100644 --- a/src/engines/stream-type.js +++ b/src/engines/stream-type.js @@ -2,7 +2,8 @@ const StreamType: PKStreamTypes = { DASH: 'dash', HLS: 'hls', - PROGRESSIVE: 'progressive' + PROGRESSIVE: 'progressive', + IMAGE: 'image' }; export {StreamType};