SfBParticipantVideo Class Reference

Inherits from SfBParticipantService : NSObject
Declared in SfBParticipantVideo.h

Overview

This interface represents the video capabilities of a participant in the conversation.

  isPaused

Whether the participant’s video is paused or is being sent into the conversation. When paused, a participant may still see other participants.

@property (readonly) BOOL isPaused

Discussion

Whether the participant’s video is paused or is being sent into the conversation. When paused, a participant may still see other participants.

Declared In

SfBParticipantVideo.h

– subscribe:error:

Register a layer for rendering video.

- (nullable SfBVideoStream *)subscribe:(CAEAGLLayer *)renderTarget error:(NSError **)error

Discussion

Register a layer for rendering video.

You can obtain an CAEAGLLayer from GLKView. Alternatively, you may have any UIView with overridden layer class. Once render target is registered, you must call render method to draw each video frame.

Declared In

SfBParticipantVideo.h

  canSubscribe

@property (readonly) BOOL canSubscribe

– unsubscribe:

Remove any binding to UI elements

- (BOOL)unsubscribe:(NSError **)error

Discussion

Remove any binding to UI elements

This invalidates any SfBVideoStream attached to this object before, allows to release UI objects and stops receiving video stream.

Declared In

SfBParticipantVideo.h

– init

- (instancetype)init