public interface VideoFrameBufferCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onMediaCodecFormat(java.lang.String mimeType,
int width,
int height)
Called when the video format has changed.
|
void |
onVideoBufferCallback(java.nio.ByteBuffer byteBuffer,
int width,
int height,
long captureTimeNs)
Called when a piece of video raw data is ready.
|
void onVideoBufferCallback(java.nio.ByteBuffer byteBuffer,
int width,
int height,
long captureTimeNs)
byteBuffer - The data buffer to be decoded.width - The width of the frame (in pixels)height - The height of the frame (in pixels)captureTimeNs - The capture time of the frame in nano secondsvoid onMediaCodecFormat(java.lang.String mimeType,
int width,
int height)
MediaFormat.mimeType - The mime type of the content.width - The width of the frame (in pixels)height - The height of the frame (in pixels)MediaFormat#createVideoFormat(String, int, int)