Video

class Video(val target: Int = GLES11Ext.GL_TEXTURE_EXTERNAL_OES) : ScreenObject, SurfaceTexture.OnFrameAvailableListener

An object that manages offscreen rendering a video source.

Constructors

Link copied to clipboard
constructor(target: Int = GLES11Ext.GL_TEXTURE_EXTERNAL_OES)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The bounds rectangle.

Link copied to clipboard

Specifies the deviceOrientation that describe the physical orientation of the device.

Link copied to clipboard
open var frame: Rect

Specifies the frame rectangle.

Link copied to clipboard

Specifies the alignment position along the horizontal axis.

Link copied to clipboard
open var id: Int
Link copied to clipboard

Specifies the imageOrientation that describe the image orientation.

Link copied to clipboard

Specifies whether displayed images rotates(true), or not(false).

Link copied to clipboard
open override var isVisible: Boolean

Specifies the visibility of the object.

Link copied to clipboard

Specifies the default spacing to laying out content in the screen object.

Link copied to clipboard

Specifies the listener to be invoked when a surface changed.

Link copied to clipboard

The mvp matrix.

Link copied to clipboard

The screen object container that contains this screen object

Link copied to clipboard
Link copied to clipboard

Specifies the surface that is an input source.

Link copied to clipboard
val target: Int
Link copied to clipboard

Specifies the alignment position along the vertical axis.

Link copied to clipboard

Specifies the video effect such as a monochrome, a sepia.

Link copied to clipboard

Specifies the videoGravity how the displays the visual content.

Link copied to clipboard

Specifies the videoSize that describe the video source.

Functions

Link copied to clipboard
open fun draw(renderer: Renderer)

Draws the screen object.

Link copied to clipboard
open override fun invalidateLayout()

Invalidates the current layout and triggers a layout update.

Link copied to clipboard
open override fun layout(renderer: Renderer)

Layouts the screen object.

Link copied to clipboard
open override fun onFrameAvailable(surfaceTexture: SurfaceTexture?)