Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DeviceController

When you are done using a DeviceController, you should perform some cleanup steps in order to avoid memory leaks:

  1. Call DeviceController.destroy to stop all active audio and video inputs.
  2. Remove any device change observers that you registered by using DeviceControllerFacade.removeDeviceChangeObserver.
  3. Drop your reference to the controller to allow it to be garbage collected.

Hierarchy

Index

Properties

Optional eventController

eventController: EventController

EventController for publishing events.

Methods

addDeviceChangeObserver

chooseAudioOutput

  • chooseAudioOutput(deviceId: string): Promise<void>

chooseVideoInputQuality

  • chooseVideoInputQuality(width: number, height: number, frameRate: number): void

createAnalyserNodeForAudioInput

destroy

  • destroy(): Promise<void>

getVideoInputQualitySettings

listAudioInputDevices

  • listAudioInputDevices(forceUpdate?: boolean): Promise<MediaDeviceInfo[]>

listAudioOutputDevices

  • listAudioOutputDevices(forceUpdate?: boolean): Promise<MediaDeviceInfo[]>

listVideoInputDevices

  • listVideoInputDevices(forceUpdate?: boolean): Promise<MediaDeviceInfo[]>

mixIntoAudioInput

  • mixIntoAudioInput(stream: MediaStream): MediaStreamAudioSourceNode

removeDeviceChangeObserver

setDeviceLabelTrigger

  • setDeviceLabelTrigger(trigger: () => Promise<MediaStream>): void

startAudioInput

startVideoInput

startVideoPreviewForVideoInput

  • startVideoPreviewForVideoInput(element: HTMLVideoElement): void

stopAudioInput

  • stopAudioInput(): Promise<void>

stopVideoInput

  • stopVideoInput(): Promise<void>

stopVideoPreviewForVideoInput

  • stopVideoPreviewForVideoInput(element: HTMLVideoElement): void

Generated using TypeDoc