TVIVideoRenderer Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TVIVideoRenderer.h |
– renderFrame:
required method
Render an individual frame.
- (void)renderFrame:(nonnull TVIVideoFrame *)frame
Parameters
frame |
The frame to be rendered. |
---|
Discussion
A 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.
Declared In
TVIVideoRenderer.h
– updateVideoSize:orientation:
required method
Informs your renderer that the size and/or orientation of the video stream is about to change.
- (void)updateVideoSize:(CMVideoDimensions)videoSize orientation:(TVIVideoOrientation)orientation
Parameters
videoSize |
The new dimensions for the video stream. |
---|---|
orientation |
The new orientation of the video stream.
Always |
Discussion
Expect the next delivered frame to have the new size and/or orientation.
Declared In
TVIVideoRenderer.h
– invalidateRenderer
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.
- (void)invalidateRenderer
Discussion
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 [TVIVideoTrack removeRenderer:]
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.
Declared In
TVIVideoRenderer.h