RtccShareSink Protocol Reference

Conforms to RtccMediaSink
Declared in RtccProtocols.h

Overview

This specialized sink deals with data from ShareSources

– pushShareFrame:ofWidth:ofHeight:andStride: required method

This method is to be used by ShareSource that creates image data to be shared. The source deals implicitely with the framerate. Contrary to the video sink, only argb is supported as input format.

- (BOOL)pushShareFrame:(uint8_t *)data ofWidth:(size_t)width ofHeight:(size_t)height andStride:(size_t)stride
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).

Return Value

YES if the frame could be sent, NO otherwise.

Discussion

This method is to be used by ShareSource that creates image data to be shared. The source deals implicitely with the framerate. Contrary to the video sink, only argb is supported as input format.

Declared In

RtccProtocols.h