Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VideoOnlyTransceiverController

Hierarchy

Index

Constructors

constructor

Properties

Protected _localAudioTransceiver

_localAudioTransceiver: RTCRtpTransceiver = null

Protected _localCameraTransceiver

_localCameraTransceiver: RTCRtpTransceiver = null

Protected browserBehavior

browserBehavior: BrowserBehavior

Protected defaultMediaStream

defaultMediaStream: MediaStream = null

Protected groupIdToTransceiver

groupIdToTransceiver: Map<number, RTCRtpTransceiver> = ...

Protected logger

logger: Logger

Protected Optional meetingSessionContext

meetingSessionContext: AudioVideoControllerState

Protected peer

peer: RTCPeerConnection = null

Protected streamIdToTransceiver

streamIdToTransceiver: Map<number, RTCRtpTransceiver> = ...

Protected videoSubscriptions

videoSubscriptions: number[] = []

Methods

addRedundantAudioRecoveryMetricsObserver

Protected addTransceiver

  • addTransceiver(trackOrKind: string | MediaStreamTrack, init?: RTCRtpTransceiverInit): RTCRtpTransceiver

getMidForGroupId

  • getMidForGroupId(groupId: number): string

getMidForStreamId

  • getMidForStreamId(streamId: number): string

hasVideoInput

  • hasVideoInput(): boolean

localAudioTransceiver

  • localAudioTransceiver(): RTCRtpTransceiver

localVideoTransceiver

  • localVideoTransceiver(): RTCRtpTransceiver

metricsDidReceive

removeRedundantAudioRecoveryMetricsObserver

replaceAudioTrack

  • replaceAudioTrack(track: MediaStreamTrack): Promise<boolean>

reset

  • reset(): void

setAudioInput

  • setAudioInput(track: MediaStreamTrack): Promise<void>

setAudioPayloadTypes

  • setAudioPayloadTypes(payloadTypeMap: Map<string, number>): void
  • Set the audio payload types. This method can be used to make the transceiver controller aware of the codec types from the SDP offer. The keys are the codec names, eg red, opus. The values are the types or numbers used to represent these codecs, eg 63 for red, 111 for opus in chrome. Currently, the SetLocalDescription task uses this method to notify the DefaultTransceiverController of opus and red codec types that are passed on to the audio red worker.

    Parameters

    • payloadTypeMap: Map<string, number>

    Returns void

setEncodingParameters

  • setEncodingParameters(encodingParamMap: Map<string, RTCRtpEncodingParameters>): Promise<void>
  • Set [[RTCRtpEncodingParameters]] on the sender of transceiver. This method should be called whenever the sender's encoding parameters of the local video transceiver need to be updated. For example, the default NScaleVideoUplinkBandwidthPolicy calls this method whenever a video is on/off or the active speaker changes. This method assumes that the sender of the local video transceiver is available and the input parameters should not be empty. The encoding parameters for sender should be retrieved using sender.getParameters and updated using sender.setParameters method.

    Parameters

    • encodingParamMap: Map<string, RTCRtpEncodingParameters>

    Returns Promise<void>

setPeer

  • setPeer(peer: RTCPeerConnection): void

setStreamIdForMid

  • setStreamIdForMid(mid: string, newStreamId: number): void

setVideoInput

  • setVideoInput(track: MediaStreamTrack): Promise<void>

setVideoSendingBitrateKbps

  • setVideoSendingBitrateKbps(bitrateKbps: number): Promise<void>

Protected setupAudioRedWorker

  • setupAudioRedWorker(): void

setupLocalTransceivers

  • setupLocalTransceivers(): void

trackIsVideoInput

  • trackIsVideoInput(track: MediaStreamTrack): boolean

Protected transceiverIsVideo

  • transceiverIsVideo(transceiver: RTCRtpTransceiver): boolean

updateVideoTransceivers

useTransceivers

  • useTransceivers(): boolean

Generated using TypeDoc