Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open fun addFilter(baseFilterRender: BaseFilterRender)
Appends the specified filter to the end.
open fun addFilter(filterPosition: Int, baseFilterRender: BaseFilterRender)
Inserts the specified filter at the specified position.
Link copied to clipboard
open fun addMediaCodecSurface(surface: Surface)
Set surface from MediaCodec class to Opengl.
Link copied to clipboard
open fun clearFilters()
Remove all filters
Link copied to clipboard
open fun enableAA(AAEnabled: Boolean)
Enable or disable Anti aliasing (This method use FXAA).
Link copied to clipboard
open fun filtersCount(): Int
Link copied to clipboard
open fun getEncoderSize(): Point
Link copied to clipboard
open fun getSurface(): Surface
Get Surface generated by Opengl.
Link copied to clipboard
Get SurfaceTexture generated by Opengl.
Link copied to clipboard
open fun isAAEnabled(): Boolean
Get Anti alias is enabled.
Link copied to clipboard
open fun isVideoMuted(): Boolean
Link copied to clipboard
open fun muteVideo()
This produce send black image all time.
Link copied to clipboard
open fun onFrameAvailable(surfaceTexture: SurfaceTexture)
Link copied to clipboard
open fun removeFilter(baseFilterRender: BaseFilterRender)
Removes the first occurrence of the specified element from this list, if it is present.
open fun removeFilter(filterPosition: Int)
Remove the filter at the specified position.
Link copied to clipboard
Remove surface generated from MediaCodec.
Link copied to clipboard
open fun run()
Link copied to clipboard
open fun setEncoderSize(width: Int, height: Int)
Set video encoder size use to Opengl
Link copied to clipboard
open fun setFilter(baseFilterRender: BaseFilterRender)
Replace the filter in position 0 or add the filter if list is empty.
open fun setFilter(filterPosition: Int, baseFilterRender: BaseFilterRender)
Replaces the filter at the specified position with the specified filter.
Link copied to clipboard
open fun setForceRender(forceRender: Boolean)
Link copied to clipboard
open fun setFps(fps: Int)
Link copied to clipboard
When true, flips only the preview horizontally
Link copied to clipboard
When true, flips only the preview vertically
Link copied to clipboard
When true, flips only the stream horizontally
Link copied to clipboard
When true, flips only the stream vertically
Link copied to clipboard
open fun setRotation(rotation: Int)
Link copied to clipboard
open fun setStreamRotation(rotation: Int)
Link copied to clipboard
open fun start()
INTERNAL METHOD.
Link copied to clipboard
open fun stop()
INTERNAL METHOD.
Link copied to clipboard
open fun takePhoto(takePhotoCallback: TakePhotoCallback)
Capture an Image from Opengl.
Link copied to clipboard
open fun unMuteVideo()