CloudHub Docs
Download Documents

RTC


Multi-camera mode

Function description

Implementation reference

Android

  1. Initialize RtcEnginePlus->initEngineWhen the API is enabled, the multi-camera mode is enabled.
  2. The list of local cameras can be obtained throughgetLocalCameraIds
  3. Turn on local video device capture->enableLocalVideo and pass in the cameraId of the device that needs to be enabled.
  4. Play this video stream->startPlayingLocalVideo and pass in the cameraId of the corresponding video device
  5. Stop this video stream->stopPlayingLocalVideo and pass in the cameraId of the corresponding video device
  6. Publish this video stream->publishStream and pass in the cameraId of the corresponding video device
  7. Stop publishing this video stream->unpublishStream,Incoming comes that you need to stop publishing the video device’s cameraId

Web

  1. Create a client
  2. enableMultiStream enables multi-stream mode
  3. Join the channel
  4. getDevices get input/output devices
  5. createStream creates a Stream object, which can pass different sourceid
  6. Pass in the Stream object publish publish local audio and video streams (Multi-stream many times as necessary to create a Stream , issued several)
  7. unpublish unpublish the local audio and video stream

Development considerations