Interface TrackContextEvents<EndpointMetadata, TrackMetadata>

interface TrackContextEvents<EndpointMetadata, TrackMetadata> {
    encodingChanged: ((context) => void);
    voiceActivityChanged: ((context) => void);
}

Type Parameters

  • EndpointMetadata
  • TrackMetadata

Properties

encodingChanged: ((context) => void)

Emitted each time track encoding has changed.

Track encoding can change in the following cases:

  • when user requested a change
  • when sender stopped sending some encoding (because of bandwidth change)
  • when receiver doesn't have enough bandwidth

Some of those reasons are indicated in TrackContext.encodingReason.

Type declaration

voiceActivityChanged: ((context) => void)

Emitted every time an update about voice activity is received from the server.

Type declaration