Update doxygen and log regarding ICE candidate message 41/282341/1 accepted/tizen/6.5/unified/20221003.125707 submit/tizen_6.5/20220930.120008
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 30 Sep 2022 03:29:45 +0000 (12:29 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 30 Sep 2022 03:40:31 +0000 (12:40 +0900)
[Version] 0.2.183
[Issue Type] Doxygen / Log

Change-Id: If8b59c0d09500f3b6e981c8a0c92c3540347f8db
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/webrtc.h
packaging/capi-media-webrtc.spec
src/webrtc_private.c

index 3fab5b8c199b430790771a9e89cf6c71bc71d4e9..a01836fe71969f7fc83842f87aee0d04e66bb0a4 100644 (file)
@@ -397,7 +397,8 @@ typedef void (*webrtc_negotiation_needed_cb)(webrtc_h webrtc, void *user_data);
  * @since_tizen 6.5
  * @remarks The @a webrtc is the same object for which the callback was set.\n
  *          The @a webrtc should not be released.\n
- *          The @a candidate can be used only in the callback. To use outside, make a copy.
+ *          The @a candidate can be used only in the callback. To use outside, make a copy.\n
+ *          It will be {"ice":{"candidate":"...", "sdpMLineIndex":0 or 1 or ...}}.
  * @param[in] webrtc     WebRTC handle
  * @param[in] candidate  The ICE candidate message
  * @param[in] user_data  The user data passed from the callback registration function
@@ -1790,7 +1791,7 @@ int webrtc_set_local_description(webrtc_h webrtc, const char *description);
  * @brief Sets the session description of the remote peer's current offer or answer.
  * @since_tizen 6.5
  * @remarks @a description is a JSON string.\n
- *          It will be {"sdp":{"type":"offer or answer","sdp":"..."}}.
+ *          It should be {"sdp":{"type":"offer or answer","sdp":"..."}}.
  * @param[in] webrtc      WebRTC handle
  * @param[in] description The remote session description
  * @return @c 0 on success,
@@ -1810,7 +1811,7 @@ int webrtc_set_remote_description(webrtc_h webrtc, const char *description);
  * @brief Adds a new ICE candidate from the remote peer over its signaling channel.
  * @since_tizen 6.5
  * @remarks @a candidate is a JSON string.\n
- *          It will be {"ice":{"candidate":"..."}}.
+ *          It should be {"ice":{"candidate":"...", "sdpMLineIndex":0 or 1 or ...}}.
  * @param[in] webrtc      WebRTC handle
  * @param[in] candidate   The ICE candidate
  * @return @c 0 on success,
index ab09632c82acc9fe1787c7dc5dcf4f31e94e73b4..bdb6af664aadbe4603a4e2fe4a0c6ea951a2700f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.2.182
+Version:    0.2.183
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 7cb6a51d15e346e8cb37e060036d68c9fc50d9d0..81f5255938eba55ad579130d5dd5f8b33d0d5c8f 100644 (file)
@@ -1826,6 +1826,10 @@ static int __get_ice_candidate_from_message(const char *ice_message, gchar **can
        }
 
        *candidate = g_strdup(_candidate);
+
+       if (!json_object_has_member(child, "sdpMLineIndex"))
+               LOG_WARNING("It does not contain 'sdpMLineIndex' member, 0 will be set for this: %s", ice_message);
+
        *mlineindex = json_object_get_int_member(child, "sdpMLineIndex");
 
        LOG_DEBUG("candidate: %s", *candidate);