unsigned int device_id;
ret = webrtc_add_media_source(g_webrtc, WEBRTC_MEDIA_SOURCE_TYPE_CAMERA, &id);
+ if (ret == WEBRTC_ERROR_NOT_SUPPORTED) {
+ dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] camera feature is not supported, skip it", __FUNCTION__, __LINE__);
+ return 0;
+ }
assert_eq(ret, WEBRTC_ERROR_NONE);
ret = webrtc_camera_source_set_device_id(g_webrtc, id, 1);
unsigned int device_id;
ret = webrtc_add_media_source(g_webrtc, WEBRTC_MEDIA_SOURCE_TYPE_CAMERA, &id);
+ if (ret == WEBRTC_ERROR_NOT_SUPPORTED) {
+ dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] camera feature is not supported, skip it", __FUNCTION__, __LINE__);
+ return 0;
+ }
assert_eq(ret, WEBRTC_ERROR_NONE);
ret = webrtc_camera_source_get_device_id(g_webrtc, id, &device_id);