Class NativePlayerTextureManager
-
- All Implemented Interfaces:
public final class NativePlayerTextureManagerA class responsible for managing the texture view used for video playback.
This class handles the inflation, layout, and lifecycle of a CustomTextureView within a parent RelativeLayout. It also manages the aspect ratio of the video and listens for surface texture events.
-
-
Constructor Summary
Constructors Constructor Description NativePlayerTextureManager(CustomTextureView textureView, RelativeLayout parentView, MediaPlayer mediaPlayer, InMobiLogger logger)
-
Method Summary
Modifier and Type Method Description final Unitinflate(SurfaceTextureListener surfaceTextureListener)Inflates the texture view and adds it to the parent view. final Unitdestroy()Destroys the texture view and releases resources. -
-
Constructor Detail
-
NativePlayerTextureManager
NativePlayerTextureManager(CustomTextureView textureView, RelativeLayout parentView, MediaPlayer mediaPlayer, InMobiLogger logger)
-
-
Method Detail
-
inflate
final Unit inflate(SurfaceTextureListener surfaceTextureListener)
Inflates the texture view and adds it to the parent view.
This method sets up the texture view, attaches listeners for video size changes and surface texture events, and updates the video aspect ratio.
- Parameters:
surfaceTextureListener- The SurfaceTextureListener for receiving surface texture events.
-
-
-
-