Mute

Mute

Component which represents the global mute button in dom. Component is used from https://www.npmjs.com/package/clulib

Constructor

new Mute()

Source:

Extends

  • Component

Members

(private) soundProvider_ :SoundProvider

Description:
  • Reference to SoundProvider for monitoring and executing sound loading processes and sound playback controling.

Source:

Reference to SoundProvider for monitoring and executing sound loading processes and sound playback controling.

Type:

(private) worldProvider_ :WorldProvider

Description:
  • Reference to the WorldProvider for monitoring actions, loading processes and status changes of the created THREE.Scene.

Source:

Reference to the WorldProvider for monitoring actions, loading processes and status changes of the created THREE.Scene.

Type:

Methods

(private) handleClick_()

Description:
  • Handle mute click. Mute or unmute sound,

Source:

onInit()

Description:
  • Component is ready and had loaded all dependencies (inherit method waitFor and sub components). Init listener for click and mute changes

Source:

(private) update_()

Description:
  • Update the display state and label of the mute button

Source: