* @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
* @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,
* @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,
}
*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);