GST_INFO_OBJECT (webrtc, "session %u ssrc %u validated", session_id, ssrc);
}
+#ifdef TIZEN_FEATURE_WEBRTC_SSRC_TIMEOUT_NOTIFICATION
+static void
+post_ssrc_timeout_error_msg (GstWebRTCBin *webrtc, guint ssrc)
+{
+ GError *err = g_error_new (GST_RESOURCE_ERROR, GST_RESOURCE_ERROR_TOO_LAZY, "RTP session ssrc timeout happened");
+ gchar *debug = g_strdup_printf("timeout on ssrc %u", ssrc);
+ GstMessage *msg = gst_message_new_error (GST_OBJECT_CAST (webrtc), err, debug);
+ g_free (debug);
+ g_error_free (err);
+
+ gst_element_post_message (GST_ELEMENT_CAST (webrtc), msg);
+}
+#endif
+
static void
on_rtpbin_timeout (GstElement * rtpbin, guint session_id, guint ssrc,
GstWebRTCBin * webrtc)
PC_LOCK (webrtc);
remove_ssrc_entry_by_ssrc (webrtc, session_id, ssrc);
+#ifdef TIZEN_FEATURE_WEBRTC_SSRC_TIMEOUT_NOTIFICATION
+ post_ssrc_timeout_error_msg (webrtc, ssrc);
+#endif
PC_UNLOCK (webrtc);
}
cdata.set('TIZEN_FEATURE_HLSDEMUX_DISCONT', true)
cdata.set('TIZEN_FEATURE_WEBRTC_MODIFICATION', true)
cdata.set('TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM', true)
+cdata.set('TIZEN_FEATURE_WEBRTC_SSRC_TIMEOUT_NOTIFICATION', true)
cdata.set('TIZEN_FEATURE_PITCH_AUDIO_META', true)
cdata.set('TIZEN_FEATURE_SRT_LATENCY', true)
if get_option('tv-profile')