Interface FullscreenHandler

    • Method Detail

      • onFullscreenRequested

        void onFullscreenRequested()
        Called when the JWPlayerView wants to enter fullscreen.
      • onFullscreenExitRequested

        void onFullscreenExitRequested()
        Called when the JWPlayerView wants to exit fullscreen.
      • onResume

        void onResume()
        Called by the JWPlayerView when the activity is resumed.
      • onPause

        void onPause()
        Called by the JWPlayerView when the activiy is paused. Use this to unregister sensor listeners
      • onDestroy

        void onDestroy()
        Called when this instance of the FullscreenHandler can be destroyed. Use this event to unregister rotation listeners.
      • onAllowRotationChanged

        void onAllowRotationChanged​(boolean allowRotation)
        Called when the "allow rotation" property of the fullscreen handler is being updated. Use this to enable or disable your rotation listener.
        Parameters:
        allowRotation - whether the fullscreen handler should listen for rotation changes, true if it should listen for changes.
      • updateLayoutParams

        void updateLayoutParams​(android.view.ViewGroup.LayoutParams layoutParams)
        Called by the JWPlayerView when it's LayoutParameters have been updated. Use these layout parameters when returning from fullscreen.
        Parameters:
        layoutParams - the new Layout Parameters for the JWPlayerView.
      • setUseFullscreenLayoutFlags

        void setUseFullscreenLayoutFlags​(boolean flags)
        Called when JWPlayerView.setUseFullscreenLayoutFlags(boolean) is called. Use this in your fullscreen implementation to determine whether to use the android.view.View.SYSTEM_UI_FLAG_FULLSCREEN and android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION flags in calls to View.setSystemUiVisibility(int).
        Parameters:
        flags - true if the FullscreenHandler should use the SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION flag.