TWCVideoRenderer Protocol Reference

Conforms to NSObject
Declared in TWCVideoRenderer.h

Overview

TWCVideoRenderers render frames from video tracks. @note: All the renderers attached to a video track will be called back on the same background thread.

– updateVideoSize: required method

Informs your renderer that the size of the video stream is about to change. Expect the next frame delivered to have the new size.

- (void)updateVideoSize:(CMVideoDimensions)videoSize

Parameters

videoSize

The new dimensions for the video stream.

Discussion

Informs your renderer that the size of the video stream is about to change. Expect the next frame delivered to have the new size.

Declared In

TWCVideoRenderer.h

– renderFrame: required method

Render an individual frame.

- (void)renderFrame:(nonnull TWCI420Frame *)frame

Parameters

frame

The frame to be rendered.

Discussion

Render an individual frame.

Note: You must copy or strongly reference (retain) the TWCI420Frame object before this call returns.

Declared In

TWCVideoRenderer.h