Hierarchy

  • Multimedia

Properties

ActionType: typeof ActionType

Device.Multimedia.ActionType

Since

0.1

Android

Ios

ActionType is used to indicate type of the camera action.

Type: typeof Type

Device.Multimedia.Type

Since

0.1

Android

Ios

Type is used to indicate type of the media.

CropShape: typeof CropShape

These enums used to specify shape of crop window.

Device.Multimedia.CropShape

Since

4.3.6

Android

Ios

CameraDevice: typeof CameraDevice

Device.Multimedia.CameraDevice

Since

4.3.0

Ios

VideoQuality: { LOW: 0; HIGH: 1; iOS: { MEDIUM: 100; TYPE640x480: 101; TYPEIFRAME1280x720: 102; TYPEIFRAME960x540: 102 } }

These enums used to specify quality of video Warning: Not recommended because it doesn't work on every Android device.

Property

Since

4.3.0

Android

Ios

Type declaration

  • Readonly LOW: 0

    Specifies that quality of video is low.

    Property

    Static

    Ios

    Android

    Since

    4.3.0

  • Readonly HIGH: 1

    Specifies that quality of video is high.

    Property

    Static

    Ios

    Android

    Since

    4.3.0

  • Readonly iOS: { MEDIUM: 100; TYPE640x480: 101; TYPEIFRAME1280x720: 102; TYPEIFRAME960x540: 102 }

    Specifies ios specific quality of video.

    Property

    Static

    Ios

    Since

    4.3.0

    • Readonly MEDIUM: 100

      If recording, specifies that you want to use medium-quality video recording.

      Property

      Static

      Ios

      Since

      4.3.0

    • Readonly TYPE640x480: 101

      If recording, specifies that you want to use VGA-quality video recording (pixel dimensions of 640x480).

      Property

      Static

      Ios

      Since

      4.3.0

    • Readonly TYPEIFRAME1280x720: 102

      If recording, specifies that you want to use 1280x720 iFrame format.

      Property

      Static

      Ios

      Since

      4.3.0

    • Readonly TYPEIFRAME960x540: 102

      If recording, specifies that you want to use 960x540 iFrame format.

      Property

      Static

      Ios

      Since

      4.3.0

hasCameraFeature: Boolean

Indicates whether the device has camera feature.

Property

Android

Ios

Static

Returns

Since

4.3.6

ios: Partial<{ requestGalleryAuthorization: any; requestCameraAuthorization: any; getGalleryAuthorizationStatus: any; getCameraAuthorizationStatus: any }>
iOS: { CameraDevice: typeof CameraDevice; CameraFlashMode: typeof CameraFlashMode }

Type declaration

Android: { CropShape: typeof CropShape }

Type declaration

Methods

  • Method

    startCamera

    Calls the camera intent.

    Android

    Ios

    Since

    0.1

    Deprecated

    4.3.0 use Device.Multimedia#capturePhoto capturePhoto OR Device.Multimedia#recordVideo recordVideo

    Parameters

    Returns void

  • Method

    capturePhoto

    Calls the camera intent for photo.

    Android

    Ios

    Since

    4.3.0

    Parameters

    Returns void

  • Method

    recordVideo

    Calls the camera intent for video. In Android, read/write external storage permission should be obtained before using recorded video.

    Android

    Ios

    Since

    4.3.0

    Parameters

    Returns void

  • Method

    pickFromGallery

    Android

    Ios

    Since

    0.1

    Parameters

    Returns void

  • Method

    pickMultipleFromGallery

    Allows multiple pick item from gallery.

    Android

    Ios

    Since

    4.3.6

    Parameters

    Returns void

  • Method

    launchCropper

    Launches cropper.

    Android

    Ios

    Since

    4.3.6

    Parameters

    Returns void

  • Method

    convertToMp4

    Converts video file to mp4 format.

    Example

    Multimedia.convertToMp4({
    videoFile: video,
    outputFileName: "myMp4Video",
    onCompleted: ({video}) => {
    console.log(" Multimedia onCompleted ")
    },
    onFailure: () => {
    console.log(" Multimedia onFailure ")
    }
    });

    Android

    Ios

    Since

    4.2.2

    Parameters

    Returns void

Constructors

Generated using TypeDoc