-
public final class VideoLoaderCreated by sshendre on 03/04/25. Project Name: OSMOS-Android-SDK File Name: VideoLoader
-
-
Constructor Summary
Constructors Constructor Description VideoLoader(CoroutineScope coroutineScope, AdTracker adTracker)
-
Method Summary
Modifier and Type Method Description final UnitsetViewLoadListener(Function2<Map<String, Object>, String, Unit> listener)Sets a listener to be notified when the ad view is fully loaded. final UnitsafeStopAndReleasePlayer(PlayerView playerView)final UnitreleasePlayer(PlayerView playerView)final Unitpause(PlayerView playerView)final UnitplayExclusive(PlayerView playerView)final UnitsafeReleaseAllPlayers()Safe version of releaseAllPlayers that handles dead thread scenarios -
-
Constructor Detail
-
VideoLoader
VideoLoader(CoroutineScope coroutineScope, AdTracker adTracker)
-
-
Method Detail
-
setViewLoadListener
final Unit setViewLoadListener(Function2<Map<String, Object>, String, Unit> listener)
Sets a listener to be notified when the ad view is fully loaded.
- Parameters:
listener- Callback receiving the loaded ImageAd and its tracking ID.
-
safeStopAndReleasePlayer
final Unit safeStopAndReleasePlayer(PlayerView playerView)
-
releasePlayer
final Unit releasePlayer(PlayerView playerView)
-
pause
final Unit pause(PlayerView playerView)
-
playExclusive
final Unit playExclusive(PlayerView playerView)
-
safeReleaseAllPlayers
final Unit safeReleaseAllPlayers()
Safe version of releaseAllPlayers that handles dead thread scenarios
-
-
-
-