Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioProfile

AudioProfile defines settings for audio quality.

Hierarchy

  • AudioProfile

Index

Constructors

constructor

  • new AudioProfile(audioBitrateBps?: number, enableAudioRedundancy?: boolean): AudioProfile
  • Constructs an AudioProfile. If no audio bitrate is supplied then the AudioProfile does not adjust the browser's internal bitrate setting. If the enableAudioRedundancy flag is not supplied then the AudioProfile enables it by default.

    Parameters

    • audioBitrateBps: number = null
    • enableAudioRedundancy: boolean = true

    Returns AudioProfile

Properties

audioBitrateBps

audioBitrateBps: number

Allows a builder to configure the opus encoder bitrate to be used for the session to send audio. If null, the browser internally sets a default bitrate.

Methods

hasRedundancyEnabled

  • hasRedundancyEnabled(): boolean

isStereo

  • isStereo(): boolean

Static fullbandMusicMono

  • fullbandMusicMono(enableAudioRedundancy?: boolean): AudioProfile

Static fullbandMusicStereo

  • fullbandMusicStereo(enableAudioRedundancy?: boolean): AudioProfile

Static fullbandSpeechMono

  • fullbandSpeechMono(enableAudioRedundancy?: boolean): AudioProfile

Generated using TypeDoc