MediaImportConfig interface

Options for importing media from device storage.

Signature:

export interface MediaImportConfig 

Properties

PropertyModifiersTypeDescription
maxDurationSec?readonlynumber(Optional) Maximum length for the imported video in seconds. Any videos longer than this will show a UI for trimming the video
mediaTypesreadonly('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?readonlynumber(Optional) Minimum length for the imported video in seconds. Any videos shorter than this will fail importing
nativePopupTitle?readonlystring(Optional) Title that shows up in the gallery when selecting media, when available
selectionLimit?readonlynumber(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;