set Volume
Sets the audio volume level.
Adjusts the audio output volume between silent (0.0) and maximum (1.0).
Example usage:
SurfaceView surfaceView = findViewById(R.id.surface_view);
SandboxedPlayer player = new SandboxedPlayer(context, surfaceView);
player.setVolume(0.5f); // Half volume
Log.d("Client", "Volume set to: " + player.getVolume());
Content copied to clipboard
Parameters
volume
Volume level (0.0 to 1.0, where 0.0 is silent and 1.0 is maximum).