TWCCameraCapturer Class Reference

Inherits from NSObject
Conforms to TWCVideoCapturer
Declared in TWCCameraCapturer.h

  camera

Sets/obtains the camera that is being shared.

@property (nonatomic, assign) TWCVideoCaptureSource camera

Discussion

Sets/obtains the camera that is being shared.

One of:

  • TWCVideoCaptureSourceFrontCamera
  • TWCVideoCaptureSourceBackCamera

Declared In

TWCCameraCapturer.h

  previewView

A view which allows you to preview the camera source. Available after calling startPreview.

@property (nonatomic, strong, readonly, nullable) UIView *previewView

Discussion

A view which allows you to preview the camera source. Available after calling startPreview.

Declared In

TWCCameraCapturer.h

  videoTrack

The capturer’s local video track.

@property (nonatomic, weak, nullable) TWCLocalVideoTrack *videoTrack

Discussion

The capturer’s local video track.

Declared In

TWCCameraCapturer.h

– startPreview

Starts previewing the camera.

- (BOOL)startPreview

Return Value

‘YES’ if preview started, ‘NO’ if it failed.

Discussion

Starts previewing the camera.

Note: The preview view is available after startPreview has been called.

Declared In

TWCCameraCapturer.h

– stopPreview

Stops previewing the camera.

- (BOOL)stopPreview

Return Value

‘YES’ if preview stopped, ‘NO’ if it failed.

Discussion

Stops previewing the camera.

Declared In

TWCCameraCapturer.h

– flipCamera

Flips the capturer’s camera source.

- (void)flipCamera

Discussion

Flips the capturer’s camera source.

Declared In

TWCCameraCapturer.h