TWCVideoViewRendererDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TWCVideoViewRenderer.h |
Overview
TWCVideoViewRendererDelegate allows you to respond to, and customize the behaviour of TWCVideoViewRenderer.
– 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 *)rendererParameters
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)dimensionsParameters
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)orientationParameters
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 *)rendererParameters
renderer |
The 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