MediaImportConfig interface
Options for importing media from device storage.
Signature:
export interface MediaImportConfig
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
maxDurationSec? | readonly | number | (Optional) Maximum length for the imported video in seconds. Any videos longer than this will show a UI for trimming the video |
mediaTypes | readonly | ('image' | 'video' | 'audio')[] | One or more types of media which will be available for the user to choose. Note that on iOS, the photo gallery only shows video and images. |
minDurationSec? | readonly | number | (Optional) Minimum length for the imported video in seconds. Any videos shorter than this will fail importing |
nativePopupTitle? | readonly | string | (Optional) Title that shows up in the gallery when selecting media, when available |
selectionLimit? | readonly | number | (Optional) Maximum number of items that can be selected from the gallery. Set to 0 for no limit |
MediaImportConfig.maxDurationSec property
Maximum length for the imported video in seconds. Any videos longer than this will show a UI for trimming the video
Signature:
readonly maxDurationSec?: number;
MediaImportConfig.mediaTypes property
One or more types of media which will be available for the user to choose. Note that on iOS, the photo gallery only shows video and images.
Signature:
readonly mediaTypes: ('image' | 'video' | 'audio')[];
MediaImportConfig.minDurationSec property
Minimum length for the imported video in seconds. Any videos shorter than this will fail importing
Signature:
readonly minDurationSec?: number;
MediaImportConfig.nativePopupTitle property
Title that shows up in the gallery when selecting media, when available
Signature:
readonly nativePopupTitle?: string;
MediaImportConfig.selectionLimit property
Maximum number of items that can be selected from the gallery. Set to 0 for no limit
Signature:
readonly selectionLimit?: number;
Updated 10 months ago