This version of Unity is unsupported.

VideoPlayer.GetAudioLanguageCode

Declaration

public string GetAudioLanguageCode(ushort trackIndex);

Parameters

trackIndex Index 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.