createCameraVideoTrack

Creates a CameraVideoTrack for the best available camera.

Best available camera is determined by the following order:

  1. First front-facing camera

  2. First back-facing camera

  3. First available camera

Return

a CameraVideoTrack

Parameters

callback

a callback used to signal various camera events

Throws


Creates a CameraVideoTrack for specific deviceName.

Return

a CameraVideoTrack

Parameters

deviceName

a device name that should be opened

callback

a callback used to signal various camera events

Throws