Version: 2018.4

VideoPlayer.GetAudioLanguageCode

Switch to Manual
public string GetAudioLanguageCode (ushort trackIndex);

Parameters

trackIndexIndex of the audio track to query.

Returns

string Language code.

Description

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

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