Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceBehaviour

IBehaviour implementation that listens for a onmouseup/down on the given recordButton.

onmouseup starts the recording, onmousedown stops the recording and publishes an audio message to the outbound audio channel.

Hierarchy

  • VoiceBehaviour

Implements

Index

Constructors

constructor

Properties

Private callback

callback: function

Type declaration

Private recordButton

recordButton: HTMLButtonElement

Private recorder

recorder: AudioRecorder

Methods

bind

Private startRecordingOnMouseDown

  • startRecordingOnMouseDown(): void

Private stopRecordingOnMouseUp

Private subscribeToAudioChannel

Generated using TypeDoc