get Playback Info
Retrieves detailed playback information for this player instance.
Provides current position, total duration, and buffered duration of the media.
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);
PlaybackInfo info = player.getPlaybackInfo();
if (info != null) {
Log.d("Client", "Position: " + info.getCurrentPosition() + "ms");
}
}
});
Content copied to clipboard
Return
PlaybackInfo object containing current position, total duration, and buffered duration, or null if no information is available.