Interface MediaFile

Encapsulates properties of a media capture file.

Index

Properties

Methods

Properties

public fullPath: string

The full path of the file, including the name.

public lastModifiedDate: Date

The date and time when the file was last modified.

public name: string

The name of the file, without path information.

public size: number

The size of the file, in bytes.

public type: string

The file's mime type

Methods

public getFormatData(successCallback: (data: MediaFileData) => void, errorCallback?: () => void)

Retrieves format information about the media capture file.

Parameters

  • successCallback: (data: MediaFileData) => void

    Invoked with a MediaFileData object when successful.

  • errorCallback?: () => void optional

    Invoked if the attempt fails, this function.