Volume
class Volume extends LimitedEffectQualifier
Controls the volume of an audio or video file.
Learn more: Adjust the audio volume
Methods
__construct(mixed $volume = null)
Volume constructor.
volume(mixed $volume)
Named Volume constructor.
byDecibels(int $dBOffset)
Increases or decreases the volume by the specified number of decibels.
byPercent(int $level)
Increases or decreases the volume by a percentage of the current volume.
mute()
Mutes the volume.
Details
__construct(mixed $volume = null)
Volume constructor.
static Volume
volume(mixed $volume)
Named Volume constructor.
static Volume
byDecibels(int $dBOffset)
Increases or decreases the volume by the specified number of decibels.
static Volume
byPercent(int $level)
Increases or decreases the volume by a percentage of the current volume.
static Volume
mute()
Mutes the volume.
You can use this on the base video to deliver a video without sound, or with a video overlay to ensure that only the sound from the base video plays.
Constants
MUTE |
|