*/
int webrtc_media_packet_source_push_packet(webrtc_h webrtc, unsigned int source_id, media_packet_h packet);
-/**
- * @brief Sets media path to the file source.
- * @since_tizen 6.5
- * @remarks %http://tizen.org/privilege/mediastorage is needed if path is relevant to internal media storage.\n
- * %http://tizen.org/privilege/externalstorage is needed if path is relevant to external media storage.
- * @param[in] webrtc WebRTC handle
- * @param[in] source_id The file source id
- * @param[in] path The media path
- * @return @c 0 on success,
- * otherwise a negative error value
- * @retval #WEBRTC_ERROR_NONE Successful
- * @retval #WEBRTC_ERROR_PERMISSION_DENIED Permission denied
- * @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #WEBRTC_ERROR_INVALID_STATE Invalid state
- * @pre Add file source to @a webrtc to get @a source_id by calling webrtc_add_media_source().
- * @pre @a webrtc state must be set to #WEBRTC_STATE_IDLE.
- */
-int webrtc_file_source_set_path(webrtc_h webrtc, unsigned int source_id, const char *path);
-
/**
* @}
*/
*/
int webrtc_add_media_source_internal(webrtc_h webrtc, webrtc_media_source_type_internal_e type, unsigned int *source_id);
+/**
+ * @internal
+ * @brief Sets media path to the file source.
+ * @since_tizen 6.5
+ * @remarks %http://tizen.org/privilege/mediastorage is needed if path is relevant to internal media storage.\n
+ * %http://tizen.org/privilege/externalstorage is needed if path is relevant to external media storage.
+ * @param[in] webrtc WebRTC handle
+ * @param[in] source_id The file source id
+ * @param[in] path The media path
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #WEBRTC_ERROR_NONE Successful
+ * @retval #WEBRTC_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #WEBRTC_ERROR_INVALID_STATE Invalid state
+ * @pre Add file source to @a webrtc to get @a source_id by calling webrtc_add_media_source().
+ * @pre @a webrtc state must be set to #WEBRTC_STATE_IDLE.
+ */
+int webrtc_file_source_set_path(webrtc_h webrtc, unsigned int source_id, const char *path);
+
/**
* @internal
* @brief Creates a signaling server for private network.
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.2.93
+Version: 0.2.94
Release: 0
Group: Multimedia/API
License: Apache-2.0
return ret;
}
-int webrtc_file_source_set_path(webrtc_h webrtc, unsigned int source_id, const char *path)
-{
- int ret = WEBRTC_ERROR_NONE;
- g_autoptr(GMutexLocker) locker = NULL;
- webrtc_s *_webrtc = (webrtc_s*)webrtc;
-
- RET_VAL_IF(_webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
- RET_VAL_IF(source_id == 0, WEBRTC_ERROR_INVALID_PARAMETER, "source_id is 0");
- RET_VAL_IF(path == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "path is NULL");
-
- locker = g_mutex_locker_new(&_webrtc->mutex);
-
- RET_VAL_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, "the state should be IDLE");
-
- ret = _set_media_path(_webrtc, source_id, path);
-
- return ret;
-}
-
int webrtc_set_sound_stream_info(webrtc_h webrtc, unsigned int track_id, sound_stream_info_h stream_info)
{
int ret = WEBRTC_ERROR_NONE;
LOG_INFO("source_id[%u]", *source_id);
return ret;
+}
+
+int webrtc_file_source_set_path(webrtc_h webrtc, unsigned int source_id, const char *path)
+{
+ g_autoptr(GMutexLocker) locker = NULL;
+ webrtc_s *_webrtc = (webrtc_s*)webrtc;
+
+ RET_VAL_IF(_webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
+ RET_VAL_IF(source_id == 0, WEBRTC_ERROR_INVALID_PARAMETER, "source_id is 0");
+ RET_VAL_IF(path == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "path is NULL");
+
+ locker = g_mutex_locker_new(&_webrtc->mutex);
+
+ RET_VAL_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, "the state should be IDLE");
+
+ return _set_media_path(_webrtc, source_id, path);
}
\ No newline at end of file