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

#import <accelerated_video_renderer.h>

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

Instance Methods

(nonnull instancetype) - init
 Initializes the accelerated video renderer.
 
(nonnull instancetype) - initWithColorRangeExpansion:
 
- Instance Methods inherited from <MCVideoRenderer>
(void) - didReceiveFrame:
 

Properties

id< MCAcceleratedVideoRendererDelegate > _Nullable delegate
 Delegate that can be used to receive information about video frame properties.
 
CGSize videoSize
 The size of the last video frame received.
 

Detailed Description

Class that renders video frames in a UIView or NSView.

Attach this class to an MCAcceleratedVideoUIView, MCAcceleratedVideoNSView 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

◆ init

- (nonnull instancetype) init

Initializes the accelerated video renderer.

◆ initWithColorRangeExpansion:

- (nonnull instancetype) initWithColorRangeExpansion: (BOOL)  enable

Initializes with the option of expanding limited color range to the full range upon rendering.

  • Parameters:
    • enable: True to enable color range expansion. Disabled by default.

Property Documentation

◆ delegate

- (id<MCAcceleratedVideoRendererDelegate> _Nullable) delegate
readwritenonatomicweak

Delegate that can be used to receive information about video frame properties.

◆ videoSize

- (CGSize) videoSize
readatomicassign

The size of the last video frame received.


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