MillicastSDK 2.0.0
|
#import <cm_sample_buffer_renderer.h>
Instance Methods | |
(instancetype) | - init |
Initialize the renderer. | |
(void) | - addDelegate: |
Add a delegate to receive MCCMSampleBufferVideoRendererDelegate events, supports multiple delegates. | |
(void) | - removeDelegate: |
Removes the delegate from the list of delegates. | |
Instance Methods inherited from <MCVideoRenderer> | |
(void) | - didReceiveFrame: |
Properties | |
CGSize | videoSize |
The size of the last video frame received. | |
This class is responsible for converting MCVideoFrame
into renderable CMSampleBufferRef
frames.
This class works in union with MCSampleBufferVideoUIView
, MCSampleBufferVideoNSView
which contain AVSampleBufferDisplayLayer
for rendering.
Attach this class to an MCSampleBufferVideoUIView
, MCSampleBufferVideoNSView
or MCVideoSwiftUIView
to render onto a View.
This class being an MCVideoRenderer
can be attached to a MCVideoTrack
, MCRTSRemoteVideoTrack
or MCWebrtcRemoteVideoTrack
to receive video frames.
- (void) addDelegate: | (addDelegate(_:)) | NS_SWIFT_NAME |
Add a delegate to receive MCCMSampleBufferVideoRendererDelegate
events, supports multiple delegates.
- (instancetype) init |
Initialize the renderer.
- (void) removeDelegate: | (removeDelegate(_:)) | NS_SWIFT_NAME |
Removes the delegate from the list of delegates.
|
readatomicassign |
The size of the last video frame received.