Class MediaAccess

Partial Public

Hierarchy

Constructors

Properties

_listeners: { audioOutputChanged?: EventListener<{ args: [] }>[]; streamChanged?: EventListener<{ args: [MediaStream] }>[] } = {}

Type declaration

constraints: MediaConstraints
hasPermission: boolean = false
off: (<K>(type: K, callback: EventListener<MediaAccessEventMap[K]>) => void) = ...

Type declaration

on: (<K>(type: K, callback: EventListener<MediaAccessEventMap[K]>) => (() => void)) = ...

Type declaration

onDisposed: (() => void)

Type declaration

    • (): void
    • Returns void

Accessors

  • get stream(): MediaStream
  • Returns MediaStream

Methods

  • Returns void

  • Returns void

  • Parameters

    • stream: MediaStream

    Returns void

Generated using TypeDoc