Search.../

volume

Sets or gets the video player volume.

Description

Setting the volume property sets the video player's percentage of total volume. Set the value to a number between 0 and 100.

Getting the volume property returns the video player's current percentage of total volume.

Note: The actual volume heard by a site visitor depends on the value of the volume property and the volume settings on the visitor's device.

Type:

numberRead & Write

Was this helpful?

Get a video player's volume

Copy Code
1let volume = $w("#myVideoPlayer").volume // 42
Set a video player's volume

Copy Code
1$w("#myVideoPlayer").volume = 42;