Skip to content

textmode.js / media / TextmodeVideo / volume

Method: volume()

ts
volume(level): this;

Set playback volume.

Parameters

ParameterTypeDescription
levelnumberVolume level from 0 to 1. Videos loaded through Textmodifier.loadVideo start muted to satisfy autoplay rules. Unmute the underlying videoElement in response to a user gesture before expecting audible volume changes.

Returns

this

Example