Skip to main content

VideoPlayer.SetDirectAudioVolume(number trackIndex, number volume)

Set the direct-output audio volume for the specified track.

Parameters:

NameTypeDescription
trackIndexnumberTrack index for which the volume is set.
volumenumberNew volume, between 0 and 1.

Usage

---@type VideoPlayer
local videoplayer;

---@type number
local trackIndex;

---@type number
local volume;


videoplayer.SetDirectAudioVolume(trackIndex, volume)