类 ACSVideoStreamRenderer

声明

@interface ACSVideoStreamRenderer : NSObject;

Description

用于视频呈现的呈现器

Methods

initWithLocalVideoStream

-(instancetype _Nonnull)initWithLocalVideoStream:(ACSLocalVideoStream*_Nonnull) localVideoStream
                                       withError:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)))

参数

  • localVideoStream - 本地视频流信息
  • nonnull_error - 需要使此 API 可在 Swift 中抛出。

初始与远程视频流

-(instancetype _Nonnull)initWithRemoteVideoStream:(ACSRemoteVideoStream*_Nonnull) remoteVideoStream
                                        withError:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)))

参数

  • remoteVideoStream - 远程参与者的视频流
  • nonnull_error - 需要使此 API 可在 Swift 中抛出。

createView

-(ACSVideoStreamRendererView* _Nonnull)createView:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)));

参数

  • nonnull_error - 需要使此 API 可在 Swift 中抛出。

退货

  • ACSVideoStreamRendererView

createViewWithOptions

-(ACSVideoStreamRendererView* _Nonnull)createViewWithOptions:(ACSCreateViewOptions*_Nullable) options
                                        withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));

参数

  • options - ACSCreateViewOptions 设置视频的缩放模式。
  • error - 需要使此 API 可在 Swift 中抛出。

退货

  • ACSVideoStreamRendererView

处理

处置呈现器及其所有相关 RendererView。 当您从 UI 中删除所有关联的视图时调用。

-(void)dispose;

属性

size

@property(readonly) struct ACSStreamSize size;

委托

您提供的用于从此 ACSVideoStreamRenderer 实例接收事件的对象。

@property(nonatomic, assign, nullable) id<ACSVideoStreamRendererDelegate> delegate;