PushVideoStreamSession

class PushVideoStreamSession(val format: VideoFormat, onStop: () -> Unit = {}, bufferCapacity: Int = 128) : VideoStreamSession

A VideoStreamSession whose frames are pushed by a platform transport.

The backing queue keeps low-latency drop-oldest semantics and records real drops. Unlike kotlinx.coroutines.channels.BufferOverflow.DROP_OLDEST, this implementation increments droppedFrameCount only when it evicts an old frame to make room for the newest one.

Constructors

Link copied to clipboard
constructor(format: VideoFormat, onStop: () -> Unit = {}, bufferCapacity: Int = 128)

Properties

Link copied to clipboard
open override val droppedFrameCount: Long
Link copied to clipboard
open override val format: VideoFormat
Link copied to clipboard
open override val frames: Flow<VideoFrame>

Functions

Link copied to clipboard
fun emit(frame: VideoFrame): Boolean
Link copied to clipboard
fun emitEndOfStream(sequence: Long)
Link copied to clipboard
open suspend override fun stop()