-
public final class PIPLoaderProject Name: OSMOS-Android-SDK File Name: PIPLoader
-
-
Constructor Summary
Constructors Constructor Description PIPLoader(CoroutineScope coroutineScope, AdTrackerInterface adTracker)
-
Method Summary
Modifier and Type Method Description final UnitsetErrorCallback(ErrorCallback callback)Set an error callback to handle errors that occur during PIP video loading or playback. final UnitclearErrorCallback()Clear the error callback to prevent memory leaks. final UnitshowPIP(Activity activity, VideoAd ad, String cliUbid, Integer width, Integer height, Coordinates coordinates, Boolean isClamped, Function1<Map<String, Object>, Unit> adClickListener)final ExoPlayercreatePlayer(Context context)final UnitupdateMuteButtonState(ExoPlayer exoPlayer, Boolean isMuted)final UnitcleanUp()-
-
Constructor Detail
-
PIPLoader
PIPLoader(CoroutineScope coroutineScope, AdTrackerInterface adTracker)
-
-
Method Detail
-
setErrorCallback
final Unit setErrorCallback(ErrorCallback callback)
Set an error callback to handle errors that occur during PIP video loading or playback.
- Parameters:
callback- Callback that handles error scenarios with structured error information.
-
clearErrorCallback
final Unit clearErrorCallback()
Clear the error callback to prevent memory leaks.
-
showPIP
final Unit showPIP(Activity activity, VideoAd ad, String cliUbid, Integer width, Integer height, Coordinates coordinates, Boolean isClamped, Function1<Map<String, Object>, Unit> adClickListener)
-
createPlayer
final ExoPlayer createPlayer(Context context)
-
updateMuteButtonState
final Unit updateMuteButtonState(ExoPlayer exoPlayer, Boolean isMuted)
-
-
-
-