Skip to main content

VideoPlayer.GetAudioLanguageCode(number trackIndex)

Returns the language code, if any, for the specified track.

Parameters:

NameTypeDescription
trackIndexnumberIndex of the audio track to query.

Returns:

typeDescription
stringLanguage code.

Usage

---@type VideoPlayer
local videoplayer;

---@type number
local trackIndex;


local val0 = videoplayer.GetAudioLanguageCode(trackIndex)

Extra Detail

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