-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.video.InAppVideoPlayerHandle
public final class ExoplayerHandle implements InAppVideoPlayerHandle
Handle wrapping exoplayer library used to render video and audio for Inapps feature. All the player and surface related functionality to be limited to this class to we can have multiple handles for video/audio support.
-
-
Constructor Summary
Constructors Constructor Description ExoplayerHandle()
-
Method Summary
Modifier and Type Method Description UnitinitExoplayer(Context context, String url)UnitinitPlayerView(Context context, Boolean isTablet)Unitplay()Unitpause()UnitsavePosition()UnitswitchToFullScreen(Boolean isFullScreen)ViewvideoSurface()final IntegerplayerWidth(Context context, Boolean isTablet)final IntegerplayerHeight(Context context, Boolean isTablet)-
-
Method Detail
-
initExoplayer
Unit initExoplayer(Context context, String url)
-
initPlayerView
Unit initPlayerView(Context context, Boolean isTablet)
-
savePosition
Unit savePosition()
-
switchToFullScreen
Unit switchToFullScreen(Boolean isFullScreen)
-
videoSurface
View videoSurface()
-
playerWidth
final Integer playerWidth(Context context, Boolean isTablet)
-
playerHeight
final Integer playerHeight(Context context, Boolean isTablet)
-
-
-
-