TVIVideoViewRendererDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TVIVideoViewRenderer.h |
Overview
TVIVideoViewRendererDelegate allows you to respond to, and customize the behaviour of
TVIVideoViewRenderer.
– 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 TVIVideoViewRenderer *)rendererParameters
renderer |
The renderer which became ready. |
|---|
Declared In
TVIVideoViewRenderer.h
– renderer:dimensionsDidChange:
This method is called every time the video track’s dimensions change.
- (void)renderer:(nonnull TVIVideoViewRenderer *)renderer dimensionsDidChange:(CMVideoDimensions)dimensionsParameters
renderer |
The renderer. |
|---|---|
dimensions |
The new dimensions of the video stream. |
Declared In
TVIVideoViewRenderer.h
– renderer:orientationDidChange:
This method is called every time the video track’s orientation changes.
- (void)renderer:(nonnull TVIVideoViewRenderer *)renderer orientationDidChange:(TVIVideoOrientation)orientationParameters
renderer |
The renderer. |
|---|---|
orientation |
The new orientation of the video stream. |
Declared In
TVIVideoViewRenderer.h
– rendererShouldRotateContent:
Specify if the renderer or the application will handle rotated video content.
- (BOOL)rendererShouldRotateContent:(nonnull TVIVideoViewRenderer *)rendererParameters
renderer |
The renderer. |
|---|
Return Value
NO if you wish to handle rotations in your own layout. Defaults to YES.
Discussion
Handling rotations at the application level is more complex, but allows you to smoothly animate transitions.
Declared In
TVIVideoViewRenderer.h