SfBVideoService Class Reference

Inherits from SfBConversationService : NSObject
Declared in SfBVideoService.h

Overview

This interface controls the local video that this endpoint sends into the conversation. The results of some operations on this interface may be visible in changes to the ParticipantVideo belonging to the conversation’s selfParticipant.

  activeCamera

@property (readonly, nullable) SfBCamera *activeCamera

– setActiveCamera:error:

Switches the local endpoint’s outgoing video to use the specified camera. To obtain the list of available cameras, see DevicesManager.

- (BOOL)setActiveCamera:(SfBCamera *)camera error:(NSError **)error

Discussion

Switches the local endpoint’s outgoing video to use the specified camera. To obtain the list of available cameras, see DevicesManager.

Declared In

SfBVideoService.h

  canSetActiveCamera

@property (readonly) BOOL canSetActiveCamera

– setPaused:error:

Whether the local endpoint’s outgoing video is paused or is being sent into the conversation.

- (BOOL)setPaused:(BOOL)paused error:(NSError **)error

Discussion

Whether the local endpoint’s outgoing video is paused or is being sent into the conversation.

Actual state is reflected in selfParticipant.video.isPaused. It may take time to propagate after setPaused is called.

Declared In

SfBVideoService.h

  canSetPaused

@property (readonly) BOOL canSetPaused

– showPreviewOnView:error:

Register a view where the preview of local video is rendered.

- (nullable SfBVideoPreview *)showPreviewOnView:(UIView *)renderTarget error:(NSError **)error

Discussion

Register a view where the preview of local video is rendered.

Unlike SfBVideoStream, image is refreshed automatically.

Declared In

SfBVideoService.h

– init

- (instancetype)init