clear

fun clear(onRemove: (MediaFrame) -> Unit? = null)

Parameters

onRemove

called for every discarded frame, used to recycle pooled buffers.