MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
MCCMSampleBufferVideoRenderer Class Reference

#import <cm_sample_buffer_renderer.h>

Inheritance diagram for MCCMSampleBufferVideoRenderer:
Inheritance graph
[legend]
Collaboration diagram for MCCMSampleBufferVideoRenderer:
Collaboration graph
[legend]

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.
 

Detailed Description

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.

Method Documentation

◆ addDelegate:

- (void) addDelegate: (addDelegate(_:))  NS_SWIFT_NAME

Add a delegate to receive MCCMSampleBufferVideoRendererDelegate events, supports multiple delegates.

◆ init

- (instancetype) init

Initialize the renderer.

◆ removeDelegate:

- (void) removeDelegate: (removeDelegate(_:))  NS_SWIFT_NAME

Removes the delegate from the list of delegates.

Property Documentation

◆ videoSize

- (CGSize) videoSize
readatomicassign

The size of the last video frame received.


The documentation for this class was generated from the following file: