Working audio source...

This commit is contained in:
Quentin 2020-01-28 07:48:15 +01:00
parent 9d484f7328
commit f34135a4a8

View file

@ -21,6 +21,16 @@ int main(int argc, char *argv[]) {
return -1;
}
g_object_set(G_OBJECT (rx_tap), "port", 5000, NULL);
g_object_set(G_OBJECT (rx_tap), "caps", gst_caps_new_simple("application/x-rtp", "media", G_TYPE_STRING, "audio", NULL), NULL);
g_object_set(G_OBJECT (rx_jitterbuffer), "do-lost", TRUE, NULL);
g_object_set(G_OBJECT (rx_jitterbuffer), "do-retransmission", FALSE, NULL);
g_object_set(G_OBJECT (rx_jitterbuffer), "latency", 50, NULL);
g_object_set(G_OBJECT (rx_opusdec), "plc", TRUE, NULL);
g_object_set(G_OBJECT (rx_opusdec), "use-inband-fec", FALSE, NULL);
gst_bin_add_many (GST_BIN (rx), rx_tap, rx_jitterbuffer, rx_depay, rx_opusdec, rx_resample, rx_sink, NULL);
gst_element_link_many (rx_tap, rx_jitterbuffer, rx_depay, rx_opusdec, rx_resample, rx_sink, NULL);