Class GLVideoSurfaceView

java.lang.Object
android.view.View
android.view.SurfaceView
android.opengl.GLSurfaceView
com.castlabs.sdk.viisights.effects.GLVideoSurfaceView
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, SurfaceHolder.Callback, SurfaceHolder.Callback2

public class GLVideoSurfaceView extends GLSurfaceView
This GLSurfaceView can be used to display video that is being played by media player and at the same time different effect can be applied on the video. This view uses shader for applying different effects.
  • Constructor Details

    • GLVideoSurfaceView

      public GLVideoSurfaceView(Context context)
      Constructor for GLVideoSurfaceView.
      Parameters:
      context - The context.
    • GLVideoSurfaceView

      public GLVideoSurfaceView(Context context, AttributeSet attrs)
      Constructor for GLVideoSurfaceView.
      Parameters:
      context - The context.
      attrs - The attribute set.
  • Method Details

    • initialize

      public void initialize(TextureView.SurfaceTextureListener textureListener, PlayerController playerController)
      Initializes the GLVideoSurfaceView.
      Parameters:
      textureListener - The texture listener.
      playerController - The player controller.
    • setEffectVisible

      public void setEffectVisible(boolean enabled)
      Sets the visibility of the effect.
      Parameters:
      enabled - True if the effect should be visible, false otherwise.