ACSLocalVideoStream Class

Declaration

@interface ACSLocalVideoStream : ACSOutgoingVideoStream;

Description

Local video stream information

Methods

init

Creates a new instance with a camera device parameter.

-(instancetype)init:(ACSVideoDeviceInfo *)camera;

Parameters

  • camera - Camera device to use for the local video stream

switchSource

Switch the video device to use as source for local video.

-(void)switchSource:(ACSVideoDeviceInfo* _Nonnull)camera withCompletionHandler:(void (^ _Nonnull)(NSError* _Nullable error))completionHandler;

Parameters

  • camera - Camera device being switched to.
  • completionHandler - A block to be invoked asynchronously after the operation has finished.

feature

Select feature extensions for local video stream.

-(id _Nonnull)feature: (Class _Nonnull)featureClass;

Parameters

  • featureClass - Feature extension of local video stream.

Properties

delegate

An object you provide to receive events from this ACSLocalVideoStream instance.

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

source

Video device to use as source for local video.

@property (retain, nonnull, readonly) ACSVideoDeviceInfo * source;

isSending

Sets to True when the local video stream is being sent on a call.

@property (readonly) BOOL isSending DEPRECATED_MSG_ATTRIBUTE("Use state property instead");