ActivityFullscreenHandler
Ready-made FullscreenHandler for the common case: hides/shows the system bars edge-to-edge and, with lockLandscape, drives screen orientation.
With lockLandscape = true (the default):
Entering fullscreen locks the activity to sensor landscape, so tapping the fullscreen button in portrait rotates into landscape fullscreen.
Exiting locks back to portrait, so the player returns to its embedded position even while the device is still physically held in landscape.
Either lock is released back to the activity's original
requestedOrientationonce the device is physically aligned with it, so sensor rotation (and OGPlayerView'sautoFullscreenOnRotate) keeps working after button-driven transitions.
onFullscreenChanged lets the host resize its layout (e.g. switch the player between an embedded 16:9 box and fillMaxSize).