Phaser API Documentation

  Version: 
setVolume([value])

Description:

Sets the volume of the currently playing video.

The value given is a double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).

Parameters:

name type arguments Default description
value number <optional> 1

A double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).

Returns:
Description:

This Video Game Object for method chaining.

Since: 3.20.0