VideoPlayer.GetAudioChannelCount(number trackIndex)
The number of audio channels in the specified audio track.
Parameters:
Name | Type | Description |
---|---|---|
trackIndex | number | Index for the audio track being queried. |
Returns:
type | Description |
---|---|
number | Number 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.