-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.video.InboxVideoPlayerHandle
public final class ExoplayerHandle implements InboxVideoPlayerHandle
Handle wrapping exoplayer library used to render video and audio for Inbox 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, Function0<Unit> buffering, Function0<Unit> playerReady)ViewvideoSurface()UnitsetPlayWhenReady(Boolean play)Unitpause()UnitinitPlayerView(Context context, Function0<Drawable> artworkAsset)FloatplayerVolume()UnithandleMute()UnitstartPlaying(Context ctx, String uriString, Boolean isMediaAudio, Boolean isMediaVideo)-
-
Method Detail
-
initExoplayer
Unit initExoplayer(Context context, Function0<Unit> buffering, Function0<Unit> playerReady)
-
videoSurface
View videoSurface()
-
setPlayWhenReady
Unit setPlayWhenReady(Boolean play)
-
initPlayerView
Unit initPlayerView(Context context, Function0<Drawable> artworkAsset)
-
playerVolume
Float playerVolume()
-
handleMute
Unit handleMute()
-
-
-
-