* @since_tizen 6.5
* @remarks The camera privilege(%http://tizen.org/privilege/camera) should be added if @a type is #WEBRTC_MEDIA_SOURCE_TYPE_CAMERA.\n
* The recorder privilege(%http://tizen.org/privilege/recorder) should be added if @a type is #WEBRTC_MEDIA_SOURCE_TYPE_MIC.\n
- * With @a type of #WEBRTC_MEDIA_SOURCE_TYPE_NULL, you can configure a transceiver only for receiving audio or video stream. (Since 7.0)
+ * With @a type of #WEBRTC_MEDIA_SOURCE_TYPE_NULL, you can configure a transceiver only for receiving audio or video stream. (Since 7.0)\n
+ * @a type of #WEBRTC_MEDIA_SOURCE_TYPE_SCREEN is not allowed to be used by third-party applications due to the security reasons. (Since 7.0)
* @param[in] webrtc WebRTC handle
* @param[in] type The media source type to be added
* @param[out] source_id The media source id
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.3.244
+Version: 0.3.245
Release: 0
Group: Multimedia/API
License: Apache-2.0
#define _WEBRTC_PRIVILEGE_INTERNET "http://tizen.org/privilege/internet"
#define _WEBRTC_PRIVILEGE_CAMERA "http://tizen.org/privilege/camera"
#define _WEBRTC_PRIVILEGE_RECORDER "http://tizen.org/privilege/recorder"
+#define _WEBRTC_PRIVILEGE_PLATFORM "http://tizen.org/privilege/internal/default/platform"
typedef struct {
const char *str;
} else if (type == WEBRTC_MEDIA_SOURCE_TYPE_MIC) {
RET_ERR_IF_FEATURE_IS_NOT_SUPPORTED(_WEBRTC_FEATURE_MICROPHONE);
RET_ERR_IF_PRIVILEGE_IS_NOT_ALLOWED(_WEBRTC_PRIVILEGE_RECORDER);
+ } else if (type == WEBRTC_MEDIA_SOURCE_TYPE_SCREEN) {
+ RET_ERR_IF_PRIVILEGE_IS_NOT_ALLOWED(_WEBRTC_PRIVILEGE_PLATFORM);
}
RET_VAL_IF(_webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
return caps;
}
+//LCOV_EXCL_START
static bool __link_switch_srcs(GstElement *switch_element, GList *switch_src_list)
{
GstElement *element;
return true;
}
+//LCOV_EXCL_STOP
static bool __set_default_video_info(webrtc_gst_slot_s *source, const ini_item_media_source_s *ini_source)
{
return WEBRTC_ERROR_NONE;
}
+//LCOV_EXCL_START
static int __build_screensrc(webrtc_s *webrtc, webrtc_gst_slot_s *source)
{
int ret;
return WEBRTC_ERROR_INVALID_OPERATION;
}
-//LCOV_EXCL_START
static int __mute_by_changing_property(webrtc_gst_slot_s *source, GstElement *videotestsrc, bool mute)
{
RET_VAL_IF(source == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "source is NULL");
case WEBRTC_MEDIA_SOURCE_TYPE_CAMERA:
return __build_camerasrc(webrtc, source);
-
+//LCOV_EXCL_START
case WEBRTC_MEDIA_SOURCE_TYPE_SCREEN:
return __build_screensrc(webrtc, source);
-
+//LCOV_EXCL_STOP
case WEBRTC_MEDIA_SOURCE_TYPE_FILE:
return _build_filesrc_pipeline(webrtc, source);