setVolume()

The τ Player API


setVolume()

The parameter is a floating point number between 0 and 1. Volume can be changed when player is running. Manage this after player starts.

Example:

await myPlayer.setVolume(0.1);
        Lorem ipsum ...

Tags: api player