#include <accelerated_video_renderer.h>
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.
◆ 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.
◆ delegate
Delegate that can be used to receive information about video frame properties.
◆ videoSize
The size of the last video frame received.
The documentation for this class was generated from the following file: