Klasa ACSVideoStreamRenderer
Deklaracji
@interface ACSVideoStreamRenderer : NSObject;
Opis
Renderer do renderowania wideo
Metody
initWithLocalVideoStream
-(instancetype _Nonnull)initWithLocalVideoStream:(ACSLocalVideoStream*_Nonnull) localVideoStream
withError:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)))
Parametry
localVideoStream
- Informacje o lokalnym strumieniu wideononnull_error
— wymagane do zgłaszania tego interfejsu API w języku Swift.
initWithRemoteVideoStream
-(instancetype _Nonnull)initWithRemoteVideoStream:(ACSRemoteVideoStream*_Nonnull) remoteVideoStream
withError:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)))
Parametry
remoteVideoStream
- Strumień wideo na uczestniku zdalnymnonnull_error
— wymagane do zgłaszania tego interfejsu API w języku Swift.
Createview
-(ACSVideoStreamRendererView* _Nonnull)createView:(NSError*_Nullable*_Nonnull) nonnull_error __attribute__((swift_error(nonnull_error)));
Parametry
nonnull_error
— wymagane do zgłaszania tego interfejsu API w języku Swift.
Zwraca
ACSVideoStreamRendererView
createViewWithOptions
-(ACSVideoStreamRendererView* _Nonnull)createViewWithOptions:(ACSCreateViewOptions*_Nullable) options
withError:(NSError*_Nullable*_Nonnull) error __attribute__((swift_error(nonnull_error)));
Parametry
options
-ACSCreateViewOptions
aby ustawić tryb skalowania wideo.error
— wymagane do zgłaszania tego interfejsu API w języku Swift.
Zwraca
ACSVideoStreamRendererView
Dispose
Usuwanie modułu renderowania i wszystkich RendererView
skojarzonych z tym modułem renderatora. Do wywołania po usunięciu wszystkich skojarzonych widoków z interfejsu użytkownika.
-(void)dispose;
Właściwości
size
@property(readonly) struct ACSStreamSize size;
delegate
Obiekt, który udostępniasz do odbierania zdarzeń z tego wystąpienia ACSVideoStreamRenderer.
@property(nonatomic, assign, nullable) id<ACSVideoStreamRendererDelegate> delegate;