PacketConsumerHardwareBufferFrameQueue.Listener


interface PacketConsumerHardwareBufferFrameQueue.Listener


Listener for PacketConsumerHardwareBufferFrameQueue events.

The methods are called on an internal processing thread before packets are forwarded to the downstream PacketConsumer.

Summary

Public functions

SurfaceInfo!

Returns a SurfaceInfo based on the given Format.

Unit

Called when the end of stream has been reached and is about to be signaled downstream.

Unit

Called when an asynchronous error occurs.

Public functions

getRendererSurfaceInfo

fun getRendererSurfaceInfo(format: Format!): SurfaceInfo!

Returns a SurfaceInfo based on the given Format.

onEndOfStream

fun onEndOfStream(): Unit

Called when the end of stream has been reached and is about to be signaled downstream.

onError

fun onError(e: VideoFrameProcessingException!): Unit

Called when an asynchronous error occurs.