Skip to content

Audio

Defined in: core/source/iaudio.ts:80

new Audio(): Audio

Audio

getVolume(): Promise<number>

Defined in: core/source/iaudio.ts:92

return: Promise

Get source’s volume level expressed as an integer from 0 to 100

Promise<number>

IAudio.getVolume


isAudioAvailable(): Promise<boolean>

Defined in: core/source/iaudio.ts:249

return: Promise

Checks if audio is available

Promise<boolean>

IAudio.isAudioAvailable


isAutoMute(): Promise<boolean>

Defined in: core/source/iaudio.ts:171

return: Promise

Check if source is automatically being muted when hiding

Promise<boolean>

IAudio.isAutoMute


isMute(): Promise<boolean>

Defined in: core/source/iaudio.ts:132

return: Promise

Check if source’s mute option is active

Promise<boolean>

IAudio.isMute


isStreamOnlyAudio(): Promise<boolean>

Defined in: core/source/iaudio.ts:210

return: Promise

Checks if audio is also output to system sound

Promise<boolean>

IAudio.isStreamOnlyAudio


setAutoMute(value): Promise<Audio>

Defined in: core/source/iaudio.ts:190

param: (value: boolean)

Set source to automatically mute when hiding

Chainable.

boolean

Promise<Audio>

IAudio.setAutoMute


setMute(value): Promise<Audio>

Defined in: core/source/iaudio.ts:151

param: (value: boolean)

Set source’s Mute property to ON or OFF

Chainable.

boolean

Promise<Audio>

IAudio.setMute


setStreamOnlyAudio(value): Promise<Audio>

Defined in: core/source/iaudio.ts:229

param: (value: boolean)

Sets whether audio should also be output to system sound

Chainable.

boolean

Promise<Audio>

IAudio.setStreamOnlyAudio


setVolume(value): Promise<Audio>

Defined in: core/source/iaudio.ts:111

param: (value: number)

Set volume level of source as an integer from 0 (muted) to 100 (maximum)

Chainable.

number

Promise<Audio>

IAudio.setVolume