get Ready
Checks if the player is ready for use.
This method provides a synchronous way to determine if the player is fully initialized and operational (e.g., connected to necessary services or resources). Implementations should return true only when the player can reliably perform its functions.
Example usage:
SurfaceView surfaceView = findViewById(R.id.surface_view);
SandboxedPlayer player = new SandboxedPlayer(context, surfaceView);
if (player.getReady()) {
player.loadVideoSource("http://example.com/video.mp4", null);
} else {
Log.d("Client", "Player not ready yet");
}
Content copied to clipboard
Return
true if the player is ready, false otherwise. Returns false if the readiness state is not yet determined or the player is not fully initialized.