Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MediaRecorderConfiguration

Configurations for the local audio and video recording.

since

v3.6.2

Hierarchy

  • MediaRecorderConfiguration

Index

Constructors

constructor

  • new MediaRecorderConfiguration(storagePath: string, containerFormat: number, streamType: number, maxDurationMs: number, recorderInfoUpdateInterval: number): MediaRecorderConfiguration
  • Parameters

    • storagePath: string
    • containerFormat: number
    • streamType: number
    • maxDurationMs: number
    • recorderInfoUpdateInterval: number

    Returns MediaRecorderConfiguration

Properties

containerFormat

containerFormat: number

The format of the recording file. The SDK currently supports only 1, which is MP4 format.

maxDurationMs

maxDurationMs: number

The maximum recording duration, in milliseconds. The default value is 120000.

recorderInfoUpdateInterval

recorderInfoUpdateInterval: number

The interval (ms) of updating the recording information. The value range is [1000,10000]. Based on the set value of recorderInfoUpdateInterval, the SDK triggers the RecorderInfoUpdated callback to report the updated recording information.

storagePath

storagePath: string

The absolute path (including the filename extensions) for the recording file. For example:

  • Android: /storage/emulated/0/Android/data/<package name>/files/example.mp4
  • iOS: /App Sandbox/Library/Caches/example.mp4

Note Ensure that the specified path exists and is writable.

streamType

streamType: number

The recording content:

  • 0x1: Only audio.
  • 0x2: Only video.
  • 0x3: (Default) Audio and video.

Generated using TypeDoc