Skip to main content

@vonage/media-processor

Classes

Interfaces

Enumerations

Type Aliases

EventMetaData

Ƭ EventMetaData: Object

EventMetaData. Some metadata of the event.

Type declaration

NameTypeDescription
transformerIndexnumberThe transformer index in the array of transformers.

DropInfo

Ƭ DropInfo: Object

DropInfo gives info about the frame rate of the transformer

Type declaration

NameTypeDescription
requestednumberThe rate predicted rate of the track
currentnumberThe actual rate of the track

WarnData

Ƭ WarnData: Object

WarnData - MediaProcessor warning event defintion

Type declaration

NameTypeDescription
eventMetaDataEventMetaDataMeta data of the event
warningTypeWarningTypeThe waring type
dropInfo?DropInfoOptional - FPS drop info.

ErrorData

Ƭ ErrorData: Object

ErrorData. MediaProcessor error data definition.

Type declaration

NameTypeDescription
eventMetaDataEventMetaDataMetadata of the event.
functionErrorFunctionThe function in which the error occurred.
errorunknownType of unknown but moslty will be string

EventDataMap

Ƭ EventDataMap: Object

EventDataMap. A map type for all event options from MediaProcessor. Each event will include only one type.

Type declaration

NameTypeDescription
warnWarnDataWarnings from the insertable streams pipeline.
errorErrorDataErrors from the insertable streams pipeline.
pipelineInfoPipelineInfoDataInfo from the insertable streams pipeline life cycle.

Functions

isSupported

isSupported(): Promise<void>

Check if the current browser is officially supported by the library.

Returns

Promise<void>

The promise will resolve or reject depending whether the browser is supported or not.