getAudioTrackInfo

Retrieves detailed audio track information for this player instance.

Provides a list of available audio tracks, the currently selected track index, and the track type. Each track is represented as a Bundle containing audio-specific metadata such as language or codec.

Example usage:

SurfaceView surfaceView = findViewById(R.id.surface_view);
SandboxedPlayer player = new SandboxedPlayer(context, surfaceView);
player.setObserver(this, isReady -> {
    if (isReady) {
        player.loadVideoSource("http://example.com/video.mp4", null);
        TrackInfo audioTrackInfo = player.getAudioTrackInfo();
        if (audioTrackInfo != null) {
            Log.d("Client", "Selected audio track index: " + audioTrackInfo.getSelectedIndex());
            Log.d("Client", "Number of audio tracks: " + audioTrackInfo.getTracks().size());
        }
    }
});

Return

TrackInfo object containing a list of audio tracks, the selected track index, and the track type, or null if no audio track information is available.