Agora SDKs have encapsulated the function of camera hot-switching, and you can simply call one API to use this function: virtual int setDevice(const char deviceId[MAX_DEVICE_ID_LENGTH]); For more detailed code, refer to the DEMO project:BOOL CDeviceTestPage::OnApply();
How do I hot-switch the camera?
Have more questions? Submit a request
Comments