Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BrowserBehavior

Hierarchy

Implemented by

Index

Methods

Optional deviceName

  • deviceName(): string

hasChromiumWebRTC

  • hasChromiumWebRTC(): boolean

hasFirefoxWebRTC

  • hasFirefoxWebRTC(): boolean

isSupported

  • isSupported(): boolean

majorVersion

  • majorVersion(): number

name

  • name(): string

Optional osName

  • osName(): string

Optional osVersion

  • osVersion(): string

requiresBundlePolicy

  • requiresBundlePolicy(): RTCBundlePolicy

requiresCheckForSdpConnectionAttributes

  • requiresCheckForSdpConnectionAttributes(): boolean

requiresIceCandidateGatheringTimeoutWorkaround

  • requiresIceCandidateGatheringTimeoutWorkaround(): boolean

requiresNoExactMediaStreamConstraints

  • requiresNoExactMediaStreamConstraints(): boolean

supportString

  • supportString(): string

supportedVideoCodecs

  • supportedVideoCodecs(): Promise<string[]>

supportsCanvasCapturedStreamPlayback

  • supportsCanvasCapturedStreamPlayback(): boolean

supportsSetSinkId

  • supportsSetSinkId(): boolean

Optional updateWithHighEntropyValues

  • updateWithHighEntropyValues(alwaysOverride: true): Promise<void>
  • Updates internal values using the User-Agent Client Hints API. If the API is not available, resolves without making changes.

    Parameters

    • alwaysOverride: true

      indicates if the values should be updated even if they were already set. Examples of value changes:

      • osName: "Mac OS" → "macOS"
      • osVersion: "10.15" → "15.7.1"
      • browserName: "Chrome" → "Google Chrome"
      • browserVersion: "120.0.0.0" → "120.0.6099.129"

    Returns Promise<void>

    Promise that resolves when update is complete

version

  • version(): string

Generated using TypeDoc