Have a question for us?

How do I hot-plug the camera?

Agora SDKs have applied specific filtering to USB camera hot-plug, a callback occurs whenever a new USB camera device is added or removed. If you want to remove a USB device that is currently being used:
  1. Stop the video.
  2. Select a usable camera device.
  3. Start the video (For the detailed code, refer to the process in the DEMO project LRESULT
CChildView::OnEIDVideoDeviceChanged(WPARAM wParam, LPARAM lParam)). If you have added a new device and want to start it immediately, see the next entry.
Have more questions? Submit a request

Comments