IsAudioTrackEnabled
7/14/25Less than 1 minute
VideoPlayer.IsAudioTrackEnabled(number trackIndex)
Whether decoding for the specified audio track is enabled. See VideoPlayer.EnableAudioTrack for distinction with mute.
Parameters:
| Name | Type | Description |
|---|---|---|
| trackIndex | number | Index of the audio track being queried. |
Returns:
| type | Description |
|---|---|
| boolean | Returns true if decoding for the specified audio track is enabled. |
Usage
---@type VideoPlayer
local videoplayer;
---@type number
local trackIndex;
local val0 = videoplayer.IsAudioTrackEnabled(trackIndex)
