# BufferVideoSource

class BufferVideoSource(format: BufferVideoSource.Format, bitrate: Int) : VideoSource

## Constructors

BufferVideoSource
Link copied to clipboard
constructor(format: BufferVideoSource.Format, bitrate: Int)

## Types

Format
Link copied to clipboard
enum Format : Enum<BufferVideoSource.Format>

## Properties

created
Link copied to clipboard
var created: Boolean
fps
Link copied to clipboard
var fps: Int
height
Link copied to clipboard
var height: Int
rotation
Link copied to clipboard
var rotation: Int
surfaceTexture
Link copied to clipboard
var surfaceTexture: SurfaceTexture?
width
Link copied to clipboard
var width: Int

## Functions

getOrientationConfig
Link copied to clipboard
open fun getOrientationConfig(): OrientationConfig
init
Link copied to clipboard
fun init(width: Int, height: Int, fps: Int, rotation: Int): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
release
Link copied to clipboard
open override fun release()
setBuffer
Link copied to clipboard
fun setBuffer(data: ByteBuffer)
fun setBuffer(data: ByteArray)
fun setBuffer(data: IntArray)
start
Link copied to clipboard
open override fun start(surfaceTexture: SurfaceTexture)
stop
Link copied to clipboard
open override fun stop()