TWCVideoViewRenderer Class Reference
Inherits from | NSObject |
---|---|
Conforms to | TWCVideoRenderer |
Declared in | TWCVideoViewRenderer.h |
– initWithDelegate:
Creates a video renderer with a delegate.
- (nonnull instancetype)initWithDelegate:(nullable id<TWCVideoViewRendererDelegate>)delegate
Parameters
delegate |
An object implementing the TWCVideoViewRendererDelegate protocol (often a UIViewController). |
---|
Return Value
A renderer which is appropriate for your device, and OS combination.
Discussion
Creates a video renderer with a delegate.
Declared In
TWCVideoViewRenderer.h
+ rendererWithDelegate:
Creates a video renderer with a delegate.
+ (nonnull TWCVideoViewRenderer *)rendererWithDelegate:(nullable id<TWCVideoViewRendererDelegate>)delegate
Parameters
delegate |
An object implementing the TWCVideoViewRendererDelegate protocol (often a UIViewController). |
---|
Return Value
A renderer which is appropriate for your device, and OS combination.
Discussion
Creates a video renderer with a delegate.
Declared In
TWCVideoViewRenderer.h
delegate
A delegate which receives callbacks when important renderer events occur.
@property (nonatomic, weak, readonly, nullable) id<TWCVideoViewRendererDelegate> delegate
Discussion
A delegate which receives callbacks when important renderer events occur.
Note: The delegate is always called on the main thread in order to synchronize with UIKit.
Declared In
TWCVideoViewRenderer.h
videoFrameDimensions
The dimensions of incoming video frames (without rotations applied). Use this to layout the renderer’s view.
@property (nonatomic, assign, readonly) CMVideoDimensions videoFrameDimensions
Discussion
The dimensions of incoming video frames (without rotations applied). Use this to layout the renderer’s view.
Declared In
TWCVideoViewRenderer.h
hasVideoData
Indicates that at least one frame of video data has been received.
@property (atomic, assign, readonly) BOOL hasVideoData
Discussion
Indicates that at least one frame of video data has been received.
Declared In
TWCVideoViewRenderer.h
view
The renderer’s view. Add this to your view hierarchy to display rendered video content.
@property (nonatomic, strong, readonly, nonnull) UIView *view
Discussion
The renderer’s view. Add this to your view hierarchy to display rendered video content.
Declared In
TWCVideoViewRenderer.h