-
- All Implemented Interfaces:
public interface THEOplayerSettings
The THEOplayerSettings API.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
isFullScreenOrientationCoupled()
Returns whether fullscreen coupling is on. abstract void
setFullScreenOrientationCoupled(boolean coupled)
Sets whether the orientation of the device and the fullscreen state are coupled. abstract int
getFullscreenOrientation()
Returns which orientation was configured to go to in fullscreen, defaults to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED. abstract void
setFullscreenOrientation(int orientation)
Sets in which ScreenOrientation the player should go into fullscreen. abstract void
setAllowBackgroundPlayback(boolean allowBackgroundPlayback)
Sets whether the player continues play-out while the app goes to the background, defaults to `false`. abstract boolean
allowBackgroundPlayback()
Whether the player continues play-out while the app goes to the background, defaults to `false`. -
-
Method Detail
-
isFullScreenOrientationCoupled
@Deprecated() abstract boolean isFullScreenOrientationCoupled()
Returns whether fullscreen coupling is on.
-
setFullScreenOrientationCoupled
@Deprecated() abstract void setFullScreenOrientationCoupled(boolean coupled)
Sets whether the orientation of the device and the fullscreen state are coupled.
- Parameters:
coupled
- Whether coupling is enabled.
-
getFullscreenOrientation
@Deprecated() abstract int getFullscreenOrientation()
Returns which orientation was configured to go to in fullscreen, defaults to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED.
-
setFullscreenOrientation
@Deprecated() abstract void setFullscreenOrientation(int orientation)
Sets in which ScreenOrientation the player should go into fullscreen.
- Parameters:
orientation
- The targeted fullscreen orientation.
-
setAllowBackgroundPlayback
abstract void setAllowBackgroundPlayback(boolean allowBackgroundPlayback)
Sets whether the player continues play-out while the app goes to the background, defaults to `false`.
- When this option is set to true, the player will not pause play-out when the app goes to the background.
- Note that when this option is enabled the player should be contained in a Service to allow the device to continue serving media and ensure a smooth and uninterrupted playback experience while the app is not in the foreground. For more information, please refer to Play media in the background
- Parameters:
allowBackgroundPlayback
- Whether background playback is enabled.
-
allowBackgroundPlayback
abstract boolean allowBackgroundPlayback()
Whether the player continues play-out while the app goes to the background, defaults to `false`.
-
-
-
-