Class GLPlayerView

All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent, IPlayerView

public class GLPlayerView extends PlayerView
A custom PlayerView that uses OpenGL for rendering video content.
  • Constructor Details

    • GLPlayerView

      public GLPlayerView(Context context)
      Constructor for GLPlayerView.
      Parameters:
      context - The context to use for this view.
    • GLPlayerView

      public GLPlayerView(Context context, AttributeSet attrs)
      Constructor for GLPlayerView with attributes.
      Parameters:
      context - The context to use for this view.
      attrs - The attributes to apply to this view.
    • GLPlayerView

      public GLPlayerView(Context context, AttributeSet attrs, int defStyle)
      Constructor for GLPlayerView with attributes and default style.
      Parameters:
      context - The context to use for this view.
      attrs - The attributes to apply to this view.
      defStyle - The default style to apply to this view.
  • Method Details

    • setEffectVisible

      public void setEffectVisible(boolean enabled)
      Sets the visibility of the visual effect applied to the video.
      Parameters:
      enabled - true to make the effect visible, false otherwise.