[Bug 795404] webrtcbin: h.264 streams work with Chrome but not with Firefox

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Apr 23 13:07:55 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795404

--- Comment #4 from Carlos Rafael Giani <crg7475 at mailbox.org> ---
Found it! Inserting an fmtp attribute with a profile-level-id value seems to
fix it. Here is the diff:

diff --git a/webrtc-test.cpp b/webrtc-test.cpp
index 07c3d81..ba41fd8 100644
--- a/webrtc-test.cpp
+++ b/webrtc-test.cpp
@@ -201,6 +201,8 @@ private:
                        gst_structure_get(reply, "offer",
GST_TYPE_WEBRTC_SESSION_DESCRIPTION, &offer, nullptr);
                        gst_promise_unref(p_promise);

+                       gst_sdp_media_add_attribute((GstSDPMedia
*)&g_array_index(offer->sdp->medias, GstSDPMedia, 0), "fmtp", "96
profile-level-id=42e01f");
+
                        GstPromise *local_desc_promise = gst_promise_new();
                        g_signal_emit_by_name(m_webrtcbin,
"set-local-description", offer, local_desc_promise);
                        gst_promise_interrupt(local_desc_promise);


(96 is the payload type I use in the example.)
Now the next step is to find out why this ID works. Also, perhaps gstwebrtc
could add this line by default?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list