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:
- Stop the video.
- Select a usable camera device.
- 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.