public class MaximizingFullscreenHandler extends DefaultFullscreenHandler
Note that this FullscreenHandler may not work correctly in every layout situation.
mAllowRotation, mDecorView, mFullscreen, mJWPlayerView, mUseFullscreenLayoutFlags
Constructor and Description |
---|
MaximizingFullscreenHandler(android.app.Activity activity,
JWPlayerView jwPlayerView)
Constructs a new DefaultFullscreenHandler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doLayoutChanges(boolean fullscreen)
Perform the layout changes necessary to make the player fill the screen.
|
protected static android.view.ViewGroup.LayoutParams |
fullscreenLayoutParams(android.view.ViewGroup.LayoutParams srcParams)
Creates a clone of srcParams with the width and height set to MATCH_PARENT.
|
void |
updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
Called by the JWPlayerView when it's LayoutParameters have been updated.
|
doRotation, doRotationListener, doSystemUiVisibility, onAllowRotationChanged, onDestroy, onFullscreenExitRequested, onFullscreenRequested, onPause, onResume, setUseFullscreenLayoutFlags
public MaximizingFullscreenHandler(android.app.Activity activity, JWPlayerView jwPlayerView)
activity
- the activity containing the instance of the JWPlayerView that this FullscreenHandler will be attached too.jwPlayerView
- the JWPlayerView that will be attached to this fullscreen handler.protected void doLayoutChanges(boolean fullscreen)
doLayoutChanges
in class DefaultFullscreenHandler
fullscreen
- True when entering fullscreen.public void updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
updateLayoutParams
in interface FullscreenHandler
updateLayoutParams
in class DefaultFullscreenHandler
layoutParams
- the new Layout Parameters for the JWPlayerView.protected static android.view.ViewGroup.LayoutParams fullscreenLayoutParams(android.view.ViewGroup.LayoutParams srcParams)
srcParams
-