GlInterface

Functions

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.
Link copied to clipboard
abstract fun addMediaCodecSurface(surface: Surface)
Set surface from MediaCodec class to Opengl.
Link copied to clipboard
abstract fun clearFilters()
Remove all filters
Link copied to clipboard
abstract fun filtersCount(): Int
Link copied to clipboard
abstract fun forceFpsLimit(fps: Int)
Force stream to work with fps selected in prepareVideo method.
Link copied to clipboard
abstract fun getEncoderSize(): Point
Link copied to clipboard
abstract fun getSurface(): Surface
Get Surface generated by Opengl.
Link copied to clipboard
Get SurfaceTexture generated by Opengl.
Link copied to clipboard
abstract fun isRunning(): Boolean
Link copied to clipboard
abstract fun isVideoMuted(): Boolean
Link copied to clipboard
abstract fun muteVideo()
This produce send black image all time.
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.
Link copied to clipboard
Remove surface generated from MediaCodec.
Link copied to clipboard
abstract fun setEncoderSize(width: Int, height: Int)
Set video encoder size use to Opengl
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.
Link copied to clipboard
abstract fun setForceRender(enabled: Boolean)
abstract fun setForceRender(enabled: Boolean, fps: Int)
Link copied to clipboard
When true, flips only the preview horizontally
Link copied to clipboard
abstract fun setIsPreviewVerticalFlip(flip: Boolean)
When true, flips only the preview vertically
Link copied to clipboard
When true, flips only the stream horizontally
Link copied to clipboard
abstract fun setIsStreamVerticalFlip(flip: Boolean)
When true, flips only the stream vertically
Link copied to clipboard
abstract fun setRotation(rotation: Int)
Link copied to clipboard
abstract fun setStreamRotation(rotation: Int)
Link copied to clipboard
abstract fun start()
INTERNAL METHOD.
Link copied to clipboard
abstract fun stop()
INTERNAL METHOD.
Link copied to clipboard
abstract fun takePhoto(takePhotoCallback: TakePhotoCallback)
Capture an Image from Opengl.
Link copied to clipboard
abstract fun unMuteVideo()