RtccVideoSink Protocol Reference

Conforms to RtccMediaSink
Declared in RtccProtocols.h

Overview

This specialized sink deals with data from VideoSources

– pushVideoFrame:ofWidth:ofHeight:ofStride:andFormat: required method

This method is to be used by MediaSource that creates video. The source deals implicitely with the framerate.

- (BOOL)pushVideoFrame:(uint8_t *)data ofWidth:(size_t)width ofHeight:(size_t)height ofStride:(size_t)stride andFormat:(frameFormat_t)format
Parameters
data

The data in binary format

width

The width of the stream

height

The height of the stream

stride

The stride of the stream. Note that the stride is the number of Bytes in a frame’s row, independently of the frame format. (i.e ARGB8888 format for a 320px wide picture with no padding will yield a 320*4 total stride).

format

The format of the frame

Return Value

YES if the frame could be sent, NO otherwise.

Discussion

This method is to be used by MediaSource that creates video. The source deals implicitely with the framerate.

Declared In

RtccProtocols.h