mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
examples/webrtc: Configure payload types
MR 2398 broke the webrtc sendrecv example by not configuring the payload types, so both audio and video streams get sent on payload 96. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3434>
This commit is contained in:
parent
f6327e25a7
commit
f2ae481a69
1 changed files with 2 additions and 2 deletions
|
@ -442,7 +442,7 @@ start_pipeline (gboolean create_offer, guint opus_pt, guint vp8_pt)
|
||||||
audio_desc =
|
audio_desc =
|
||||||
g_strdup_printf
|
g_strdup_printf
|
||||||
("audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample"
|
("audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample"
|
||||||
"! queue ! opusenc ! rtpopuspay name=audiopay ! queue");
|
"! queue ! opusenc ! rtpopuspay name=audiopay pt=%u ! queue", opus_pt);
|
||||||
audio_bin = gst_parse_bin_from_description (audio_desc, TRUE, &audio_error);
|
audio_bin = gst_parse_bin_from_description (audio_desc, TRUE, &audio_error);
|
||||||
g_free (audio_desc);
|
g_free (audio_desc);
|
||||||
if (audio_error) {
|
if (audio_error) {
|
||||||
|
@ -461,7 +461,7 @@ start_pipeline (gboolean create_offer, guint opus_pt, guint vp8_pt)
|
||||||
"vp8enc deadline=1 keyframe-max-dist=2000 ! "
|
"vp8enc deadline=1 keyframe-max-dist=2000 ! "
|
||||||
/* picture-id-mode=15-bit seems to make TWCC stats behave better, and
|
/* picture-id-mode=15-bit seems to make TWCC stats behave better, and
|
||||||
* fixes stuttery video playback in Chrome */
|
* fixes stuttery video playback in Chrome */
|
||||||
"rtpvp8pay name=videopay picture-id-mode=15-bit ! queue");
|
"rtpvp8pay name=videopay picture-id-mode=15-bit pt=%u ! queue", vp8_pt);
|
||||||
video_bin = gst_parse_bin_from_description (video_desc, TRUE, &video_error);
|
video_bin = gst_parse_bin_from_description (video_desc, TRUE, &video_error);
|
||||||
g_free (video_desc);
|
g_free (video_desc);
|
||||||
if (video_error) {
|
if (video_error) {
|
||||||
|
|
Loading…
Reference in a new issue