Class HtmlVideoSurfaceController
-
- All Implemented Interfaces:
@MainThread() public final class HtmlVideoSurfaceController
-
-
Constructor Summary
Constructors Constructor Description HtmlVideoSurfaceController(CoroutineScope coroutineScope, Player mediaPlayer, ViewGroup mediaPlayerLayout, InMobiLogger logger)
-
Method Summary
Modifier and Type Method Description final Jobinit(SurfaceViewabilityListener surfaceViewabilityListener)Starts the viewability tracking process. final UnitsetSurface()final UnitonVideoSizeChanged(Integer width, Integer height)final UnitsetOnPositionChangeListener(OnPositionChangeListener listener)final Unitrelease()Releases resources held by this controller. -
-
Constructor Detail
-
HtmlVideoSurfaceController
HtmlVideoSurfaceController(CoroutineScope coroutineScope, Player mediaPlayer, ViewGroup mediaPlayerLayout, InMobiLogger logger)
-
-
Method Detail
-
init
final Job init(SurfaceViewabilityListener surfaceViewabilityListener)
Starts the viewability tracking process.
This method initializes the texture view, starts tracking the viewability, and sets up the listener for viewability changes.
- Parameters:
surfaceViewabilityListener- The SurfaceViewabilityListener for receiving viewability events.
-
setSurface
final Unit setSurface()
-
onVideoSizeChanged
final Unit onVideoSizeChanged(Integer width, Integer height)
-
setOnPositionChangeListener
final Unit setOnPositionChangeListener(OnPositionChangeListener listener)
-
-
-
-