Compartir a través de


Clase ACSVideoStreamRenderer

Declaración

@interface ACSVideoStreamRenderer : NSObject;

Description

Renderizador de vídeo

Methods

initWithLocalVideoStream

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

Parámetros

  • localVideoStream - Información de transmisión de video local
  • nonnull_error - requerido para que esta API se pueda lanzar en Swift.

initWithRemoteVideoStream

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

Parámetros

  • remoteVideoStream - Transmisión de video en participante remoto
  • nonnull_error - requerido para que esta API se pueda lanzar en Swift.

createView

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

Parámetros

  • nonnull_error - requerido para que esta API se pueda lanzar en Swift.

Devoluciones

  • ACSVideoStreamRendererView

createViewWithOptions

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

Parámetros

  • options - ACSCreateViewOptions para establecer el modo de escala del video.
  • error - requerido para que esta API se pueda lanzar en Swift.

Devoluciones

  • ACSVideoStreamRendererView

disponer

Eliminación del representador y de todos los elementos RendererView asociados a este representador. Se llamará cuando haya eliminado todas las vistas asociadas de la interfaz de usuario.

-(void)dispose;

Propiedades

size

@property(readonly) struct ACSStreamSize size;

delegate

Objeto que se proporciona para recibir eventos de esta instancia de ACSVideoStreamRenderer.

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