# GlInterface

interface GlInterface

#### Inheritors

GlStreamInterface
OpenGlView

## Functions

addFilter
Link copied to clipboard
abstract fun addFilter(@NonNull baseFilterRender: BaseFilterRender)
Appends the specified filter to the end.
abstract fun addFilter(filterPosition: Int, @NonNull baseFilterRender: BaseFilterRender)
Inserts the specified filter at the specified position.
addMediaCodecRecordSurface
Link copied to clipboard
abstract fun addMediaCodecRecordSurface(surface: Surface)
addMediaCodecSurface
Link copied to clipboard
abstract fun addMediaCodecSurface(surface: Surface)
Set surface from MediaCodec class to Opengl.
clearFilters
Link copied to clipboard
abstract fun clearFilters()
Remove all filters
filtersCount
Link copied to clipboard
abstract fun filtersCount(): Int
forceFpsLimit
Link copied to clipboard
abstract fun forceFpsLimit(fps: Int)
Force stream to work with fps selected in prepareVideo method.
getEncoderSize
Link copied to clipboard
abstract fun getEncoderSize(): Point
getSurface
Link copied to clipboard
abstract fun getSurface(): Surface
Get Surface generated by Opengl.
getSurfaceTexture
Link copied to clipboard
abstract fun getSurfaceTexture(): SurfaceTexture
Get SurfaceTexture generated by Opengl.
isRunning
Link copied to clipboard
abstract fun isRunning(): Boolean
isVideoMuted
Link copied to clipboard
abstract fun isVideoMuted(): Boolean
muteVideo
Link copied to clipboard
abstract fun muteVideo()
This produce send black image all time.
removeFilter
Link copied to clipboard
abstract fun removeFilter(@NonNull baseFilterRender: BaseFilterRender)
Removes the first occurrence of the specified element from this list, if it is present.
abstract fun removeFilter(filterPosition: Int)
Remove the filter at the specified position.
removeMediaCodecRecordSurface
Link copied to clipboard
abstract fun removeMediaCodecRecordSurface()
removeMediaCodecSurface
Link copied to clipboard
abstract fun removeMediaCodecSurface()
Remove surface generated from MediaCodec.
setEncoderRecordSize
Link copied to clipboard
abstract fun setEncoderRecordSize(width: Int, height: Int)
setEncoderSize
Link copied to clipboard
abstract fun setEncoderSize(width: Int, height: Int)
Set video encoder size use to Opengl
setFilter
Link copied to clipboard
abstract fun setFilter(@NonNull baseFilterRender: BaseFilterRender)
Replace the filter in position 0 or add the filter if list is empty.
abstract fun setFilter(filterPosition: Int, @NonNull baseFilterRender: BaseFilterRender)
Replaces the filter at the specified position with the specified filter.
setForceRender
Link copied to clipboard
abstract fun setForceRender(enabled: Boolean)
abstract fun setForceRender(enabled: Boolean, fps: Int)
setIsPreviewHorizontalFlip
Link copied to clipboard
abstract fun setIsPreviewHorizontalFlip(flip: Boolean)
When true, flips only the preview horizontally
setIsPreviewVerticalFlip
Link copied to clipboard
abstract fun setIsPreviewVerticalFlip(flip: Boolean)
When true, flips only the preview vertically
setIsStreamHorizontalFlip
Link copied to clipboard
abstract fun setIsStreamHorizontalFlip(flip: Boolean)
When true, flips only the stream horizontally
setIsStreamVerticalFlip
Link copied to clipboard
abstract fun setIsStreamVerticalFlip(flip: Boolean)
When true, flips only the stream vertically
setRenderErrorCallback
Link copied to clipboard
abstract fun setRenderErrorCallback(callback: RenderErrorCallback)
setRotation
Link copied to clipboard
abstract fun setRotation(rotation: Int)
setStreamRotation
Link copied to clipboard
abstract fun setStreamRotation(rotation: Int)
start
Link copied to clipboard
abstract fun start()
INTERNAL METHOD.
stop
Link copied to clipboard
abstract fun stop()
INTERNAL METHOD.
takePhoto
Link copied to clipboard
abstract fun takePhoto(takePhotoCallback: TakePhotoCallback)
Capture an Image from Opengl.
unMuteVideo
Link copied to clipboard
abstract fun unMuteVideo()