get Video Track Info
Retrieves detailed video track information for this player instance.
Provides a list of available video tracks, the currently selected track index, and the track type. Each track is represented as a Bundle containing video-specific metadata such as resolution or bitrate.
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 videoTrackInfo = player.getVideoTrackInfo();
if (videoTrackInfo != null) {
Log.d("Client", "Selected video track index: " + videoTrackInfo.getSelectedIndex());
Log.d("Client", "Number of video tracks: " + videoTrackInfo.getTracks().size());
}
}
});
Content copied to clipboard
Return
TrackInfo object containing a list of video tracks, the selected track index, and the track type, or null if no video track information is available.