Skip to main content

VideoPlayer.IsAudioTrackEnabled(number trackIndex)

Whether decoding for the specified audio track is enabled. See VideoPlayer.EnableAudioTrack for distinction with mute.

Parameters:

NameTypeDescription
trackIndexnumberIndex of the audio track being queried.

Returns:

typeDescription
booleanReturns true if decoding for the specified audio track is enabled.

Usage

---@type VideoPlayer
local videoplayer;

---@type number
local trackIndex;


local val0 = videoplayer.IsAudioTrackEnabled(trackIndex)