AbstractAudioVideoInputService

AbstractAudioVideoInputService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Service:

AbstractAudioVideoInputService()

This class represents the audio and video setting service, for inputs.

init() ⇒ Promise

Init the service

Kind: instance method of AbstractAudioVideoInputService

mute(sourceType, [options]) ⇒ Promise.<boolean>

Mute the input source

Kind: instance method of AbstractAudioVideoInputService
Returns: Promise.<boolean> - A Promise resolved if muted
Emits: AbstractVolumeService#event:muteStateChange

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object
[options.skipNotify]boolean

True if the method shouldn't dispatch an event, false otherwise

unMute(sourceType, [options]) ⇒ Promise

UnMute the input source

Kind: instance method of AbstractAudioVideoInputService
Returns: Promise - A Promise resolved if unmuted
Emits: AbstractVolumeService#event:muteStateChange

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object
[options.skipNotify]boolean

True if the method shouldn't dispatch an event, false otherwise.

toggleMute(sourceType, [options]) ⇒ Promise.<boolean>

Toggle the mute status of an input source

Kind: instance method of AbstractAudioVideoInputService
Returns: Promise.<boolean> - A Promise resolved with mute status.
Emits: AbstractVolumeService#event:muteStateChange

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object
[options.skipNotify]boolean

True if the method shouldn't dispatch an event, false otherwise

[options.force]boolean

If true, refresh the cache

isMuted(sourceType, [options]) ⇒ Promise.<boolean>

Check if the input source is muted.

Kind: instance method of AbstractAudioVideoInputService
Returns: Promise.<boolean> - A Promise resolved with the main volume mute status.

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object

Additional options

[options.force]boolean

If true, refresh the cache

_init() ⇒ Promise

Init the service.

Kind: instance abstract method of AbstractAudioVideoInputService
Access: protected

_mute(sourceType, [options]) ⇒ Promise.<boolean>

Kind: instance abstract method of AbstractAudioVideoInputService
Returns: Promise.<boolean> - A Promise resolved if muted

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object

_unMute(sourceType, [options]) ⇒ Promise

Kind: instance abstract method of AbstractAudioVideoInputService
Returns: Promise - A Promise resolved when if unmuted.
Access: protected

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object

_isMuted(sourceType, [options]) ⇒ Promise.<boolean>

Kind: instance abstract method of AbstractAudioVideoInputService
Returns: Promise.<boolean> - A Promise resolved with the input source mute status.

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

[options]object

_onMuteStateChange(sourceType, muted) ⇒ Promise

Kind: instance method of AbstractAudioVideoInputService
Access: protected

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

mutedboolean

“muteStateChange” (sourceType, muted)

Fired when the mute state of an input source has been changed

Kind: event emitted by AbstractAudioVideoInputService

ParamTypeDescription
sourceTypenumber

One of AudioInputSourceTypes

mutedboolean

True if muted