Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultDeviceController

Hierarchy

  • DefaultDeviceController

Implements

Index

Constructors

constructor

Properties

Optional eventController

eventController: EventController

EventController for publishing events.

Methods

acquireAudioInputStream

  • acquireAudioInputStream(): Promise<MediaStream>

acquireDisplayInputStream

  • acquireDisplayInputStream(_streamConstraints: MediaStreamConstraints): Promise<MediaStream>

acquireVideoInputStream

  • acquireVideoInputStream(): Promise<MediaStream>

addDeviceChangeObserver

addMediaStreamBrokerObserver

chooseAudioOutput

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

chooseVideoInputQuality

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

createAnalyserNodeForAudioInput

createAnalyserNodeForRawAudioInput

destroy

  • destroy(): Promise<void>

getVideoInputQualitySettings

hasAppliedTransform

  • hasAppliedTransform(): boolean

listAudioInputDevices

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

listAudioOutputDevices

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

listVideoInputDevices

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

mixIntoAudioInput

  • mixIntoAudioInput(stream: MediaStream): MediaStreamAudioSourceNode

muteLocalAudioInputStream

  • muteLocalAudioInputStream(): void

removeDeviceChangeObserver

removeMediaStreamBrokerObserver

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

unmuteLocalAudioInputStream

  • unmuteLocalAudioInputStream(): void

Static closeAudioContext

  • closeAudioContext(): void

Static createEmptyAudioDevice

  • createEmptyAudioDevice(): MediaStream

Static getAudioContext

  • getAudioContext(): AudioContext

Static getIntrinsicDeviceId

  • getIntrinsicDeviceId(device: Device): string | string[]

Static resumeAudioContext

  • resumeAudioContext(): Promise<void>

Static setDefaultLatencyHint

  • setDefaultLatencyHint(latencyHint?: number | AudioContextLatencyCategory): void
  • Overrides the default latency hint used by the user agent when creating the AudioContext. By default, user agents will choose "interactive" which opts for the smallest possible audio buffer. This can cause choppy audio in some cases on Windows. Therefore, "playback" will be chosen on Windows unless this value is overridden with this function.

    Parameters

    • Optional latencyHint: number | AudioContextLatencyCategory

      The latency hint to be used when creating the Web Audio AudioContext

    Returns void

Static suspendAudioContext

  • suspendAudioContext(): Promise<void>
  • Calls suspend on reusable audio context. This is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while (i.e. if you have an application that isn't always running a Chime SDK meeting). This is preferrable to calling closeAudioContext

    Returns Promise<void>

Static synthesizeAudioDevice

  • synthesizeAudioDevice(toneHz: number): MediaStream

Generated using TypeDoc