Skip to main content

VideoPlayer.GetAudioChannelCount(number trackIndex)

The number of audio channels in the specified audio track.

Parameters:

NameTypeDescription
trackIndexnumberIndex for the audio track being queried.

Returns:

typeDescription
numberNumber of audio channels.

Usage

---@type VideoPlayer
local videoplayer;

---@type number
local trackIndex;


local val0 = videoplayer.GetAudioChannelCount(trackIndex)

Extra Detail

For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare.