TVIVideoRenderer Protocol Reference
Render an individual frame.
- (void)renderFrame:(nonnull TVIVideoFrame *)frame
The frame to be rendered.
TVIVideoRenderer is expected to support any valid
TVIPixelFormat or drop incoming frames if it
cannot process them. You should strongly reference (retain) the
TVIVideoFrame before this call returns if you
want to render it later. Frames are delivered to your renderer at or near their presentation timestamps.
Informs your renderer that the size and/or orientation of the video stream is about to change.
- (void)updateVideoSize:(CMVideoDimensions)videoSize orientation:(TVIVideoOrientation)orientation
The new dimensions for the video stream.
The new orientation of the video stream.
Expect the next delivered frame to have the new size and/or orientation.
Informs your renderer that it is no longer being used and allows you to perform any cleanup necessary if you wish to reuse the renderer with another video track.
If implemented, this method will be called when removing the renderer during the invocation of
[TVIVideoTrack removeRenderer:]. This method will be invoked on the thread in which
was called. When your Client is unsubscribed from a
TVIRemoteVideoTrack you are given the opportunity to remove your
renderer. If the rendered is not removed manually, this method will automatically be called after the
didUnsubscribeFromVideoTrack:publication:forParticipant: delegate method has been invoked.