TWCVideoViewRendererDelegate Protocol Reference

Conforms to NSObject
Declared in TWCVideoViewRenderer.h

– rendererDidReceiveVideoData:

This method is called once, and only once after the first frame is received. Use it to drive user interface animations. @note: Querying hasVideoData will return ‘YES’ within, and after this call.

- (void)rendererDidReceiveVideoData:(nonnull TWCVideoViewRenderer *)renderer

Parameters

renderer

The renderer which became ready.

Discussion

This method is called once, and only once after the first frame is received. Use it to drive user interface animations. @note: Querying hasVideoData will return ‘YES’ within, and after this call.

Declared In

TWCVideoViewRenderer.h

– renderer:dimensionsDidChange:

This method is called every time the video track’s dimensions change.

- (void)renderer:(nonnull TWCVideoViewRenderer *)renderer dimensionsDidChange:(CMVideoDimensions)dimensions

Parameters

renderer

The renderer.

dimensions

The new dimensions of the video stream.

Discussion

This method is called every time the video track’s dimensions change.

Declared In

TWCVideoViewRenderer.h

– renderer:orientationDidChange:

This method is called every time the video track’s orientation changes.

- (void)renderer:(nonnull TWCVideoViewRenderer *)renderer orientationDidChange:(TWCVideoOrientation)orientation

Parameters

renderer

The renderer.

orientation

The new orientation of the video stream.

Discussion

This method is called every time the video track’s orientation changes.

Declared In

TWCVideoViewRenderer.h

– rendererShouldRotateContent:

Specify if the renderer or the application will handle rotated video content.

- (BOOL)rendererShouldRotateContent:(nonnull TWCVideoViewRenderer *)renderer

Return Value

NO if you wish to handle rotations in your own layout. Defaults to YES.

Discussion

Specify if the renderer or the application will handle rotated video content.

Handling rotations at the application level is more complex, but allows you to smoothly animate transitions.

Declared In

TWCVideoViewRenderer.h