MillicastSDK 2.2.0
Loading...
Searching...
No Matches
MCCMSampleBufferVideoRenderer Class Reference

This class is responsible for converting MCVideoFrame into renderable CMSampleBufferRef frames. More...

#include <cm_sample_buffer_renderer.h>

Inheritance diagram for MCCMSampleBufferVideoRenderer:
Collaboration diagram for MCCMSampleBufferVideoRenderer:

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.
 

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: