~ubuntu-branches/ubuntu/precise/gst-plugins-bad0.10/precise-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gstrtpbin</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GStreamer Bad Plugins 0.10 Plugins Reference Manual">
<link rel="up" href="ch01.html" title="gst-plugins-bad Elements">
<link rel="prev" href="gst-plugins-bad-plugins-festival.html" title="festival">
<link rel="next" href="gst-plugins-bad-plugins-gstrtpclient.html" title="gstrtpclient">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="gst-plugins-bad Elements">
<link rel="chapter" href="ch02.html" title="gst-plugins-bad Plugins">
<link rel="chapter" href="ch03.html" title="gst-plugins-bad Classes">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gst-plugins-bad-plugins-festival.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GStreamer Bad Plugins 0.10 Plugins Reference Manual</th>
<td><a accesskey="n" href="gst-plugins-bad-plugins-gstrtpclient.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2560144" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2566600" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id2560103" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id2560070" class="shortcut">Implemented Interfaces</a>
                  &#160;|&#160;
                  <a href="#id2560054" class="shortcut">Properties</a>
                  &#160;|&#160;
                  <a href="#id2559971" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gst-plugins-bad-plugins-gstrtpbin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2560144"></a><span class="refentrytitle">gstrtpbin</span>
</h2>
<p>gstrtpbin &#8212; handle media from one RTP bin</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="GstRtpBin"></a><pre class="synopsis">



                    <a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-struct">GstRtpBin</a>;

</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2560103"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  GObject
   +----GstObject
         +----GstElement
               +----GstBin
                     +----GstRtpBin
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2560070"></a><h2>Implemented Interfaces</h2>
<p>
GstRtpBin implements
 GstChildProxy.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2560054"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--latency">latency</a>"                  guint                 : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-cname">sdes-cname</a>"               gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-email">sdes-email</a>"               gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-location">sdes-location</a>"            gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-name">sdes-name</a>"                gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-note">sdes-note</a>"                gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-phone">sdes-phone</a>"               gchar*                : Read / Write
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin--sdes-tool">sdes-tool</a>"                gchar*                : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2559971"></a><h2>Signals</h2>
<pre class="synopsis">

  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-clear-pt-map">clear-pt-map</a>"                                   : Run Last / Action
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-bye-ssrc">on-bye-ssrc</a>"                                    : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-bye-timeout">on-bye-timeout</a>"                                 : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-new-ssrc">on-new-ssrc</a>"                                    : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-ssrc-active">on-ssrc-active</a>"                                 : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-ssrc-collision">on-ssrc-collision</a>"                              : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-ssrc-sdes">on-ssrc-sdes</a>"                                   : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-ssrc-validated">on-ssrc-validated</a>"                              : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-on-timeout">on-timeout</a>"                                     : Run Last
  "<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin-request-pt-map">request-pt-map</a>"                                 : Run Last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2566600"></a><h2>Description</h2>
<p>
</p>
<div class="refsect2" lang="en">
<a name="id2566603"></a><p>
RTP bin combines the functions of gstrtpsession, gstrtpssrcdemux, gstrtpjitterbuffer
and gstrtpptdemux in one element. It allows for multiple RTP sessions that will
be synchronized together using RTCP SR packets.
</p>
<p>
gstrtpbin is configured with a number of request pads that define the
functionality that is activated, similar to the gstrtpsession element.
</p>
<p>
To use gstrtpbin as an RTP receiver, request a recv_rtp_sink_%<code class="literal">d</code> pad. The session
number must be specified in the pad name. 
Data received on the recv_rtp_sink_%<code class="literal">d</code> pad will be processed in the gstrtpsession
manager and after being validated forwarded on gstrtpssrcdemuxer element. Each
RTP stream is demuxed based on the SSRC and send to a gstrtpjitterbuffer. After
the packets are released from the jitterbuffer, they will be forwarded to a
gstrtpptdemuxer element. The gstrtpptdemuxer element will demux the packets based
on the payload type and will create a unique pad recv_rtp_src_%<code class="literal">d_</code>%<code class="literal">d_</code>%<code class="literal">d</code> on
gstrtpbin with the session number, SSRC and payload type respectively as the pad
name.
</p>
<p>
To also use gstrtpbin as an RTCP receiver, request a recv_rtcp_sink_%<code class="literal">d</code> pad. The
session number must be specified in the pad name.
</p>
<p>
If you want the session manager to generate and send RTCP packets, request
the send_rtcp_src_%<code class="literal">d</code> pad with the session number in the pad name. Packet pushed
on this pad contain SR/RR RTCP reports that should be sent to all participants
in the session.
</p>
<p>
To use gstrtpbin as a sender, request a send_rtp_sink_%<code class="literal">d</code> pad, which will
automatically create a send_rtp_src_%<code class="literal">d</code> pad. If the session number is not provided,
the pad from the lowest available session will be returned. The session manager will modify the
SSRC in the RTP packets to its own SSRC and wil forward the packets on the
send_rtp_src_%<code class="literal">d</code> pad after updating its internal state.
</p>
<p>
The session manager needs the clock-rate of the payload types it is handling
and will signal the GstRtpSession::request-pt-map signal when it needs such a
mapping. One can clear the cached values with the GstRtpSession::clear-pt-map
signal.
</p>
<h3>Example pipelines</h3>
<p>
</p>
<pre class="programlisting">
gst-launch udpsrc port=5000 caps="application/x-rtp, ..." ! .recv_rtp_sink_0 \
    gstrtpbin ! rtptheoradepay ! theoradec ! xvimagesink
</pre>
<p>
Receive RTP data from port 5000 and send to the session 0 in gstrtpbin.
</p>
<p>
</p>
<pre class="programlisting">
gst-launch gstrtpbin name=rtpbin \
        v4l2src ! ffmpegcolorspace ! ffenc_h263 ! rtph263ppay ! rtpbin.send_rtp_sink_0 \
                  rtpbin.send_rtp_src_0 ! udpsink port=5000                            \
                  rtpbin.send_rtcp_src_0 ! udpsink port=5001 sync=false async=false    \
                  udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0                           \
        audiotestsrc ! amrnbenc ! rtpamrpay ! rtpbin.send_rtp_sink_1                   \
                  rtpbin.send_rtp_src_1 ! udpsink port=5002                            \
                  rtpbin.send_rtcp_src_1 ! udpsink port=5003 sync=false async=false    \
                  udpsrc port=5007 ! rtpbin.recv_rtcp_sink_1
</pre>
<p>
Encode and payload H263 video captured from a v4l2src. Encode and payload AMR
audio generated from audiotestsrc. The video is sent to session 0 in rtpbin
and the audio is sent to session 1. Video packets are sent on UDP port 5000
and audio packets on port 5002. The video RTCP packets for session 0 are sent
on port 5001 and the audio RTCP packets for session 0 are sent on port 5003.
RTCP packets for session 0 are received on port 5005 and RTCP for session 1
is received on port 5007. Since RTCP packets from the sender should be sent
as soon as possible and do not participate in preroll, sync=false and 
async=false is configured on udpsink
</p>
<p>
</p>
<pre class="programlisting">
 gst-launch -v gstrtpbin name=rtpbin                                          \
    udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998" \
            port=5000 ! rtpbin.recv_rtp_sink_0                                \
        rtpbin. ! rtph263pdepay ! ffdec_h263 ! xvimagesink                    \
     udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0                               \
     rtpbin.send_rtcp_src_0 ! udpsink port=5005 sync=false async=false        \
    udpsrc caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)AMR,encoding-params=(string)1,octet-align=(string)1" \
            port=5002 ! rtpbin.recv_rtp_sink_1                                \
        rtpbin. ! rtpamrdepay ! amrnbdec ! alsasink                           \
     udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1                               \
     rtpbin.send_rtcp_src_1 ! udpsink port=5007 sync=false async=false
</pre>
<p>
Receive H263 on port 5000, send it through rtpbin in session 0, depayload,
decode and display the video.
Receive AMR on port 5002, send it through rtpbin in session 1, depayload,
decode and play the audio.
Receive server RTCP packets for session 0 on port 5001 and RTCP packets for
session 1 on port 5003. These packets will be used for session management and
synchronisation.
Send RTCP reports for session 0 on port 5005 and RTCP reports for session 1
on port 5007.
</p>
</div>
<p>
</p>
<p>
Last reviewed on 2007-08-30 (0.10.6)</p>
<div class="refsect2" lang="en">
<a name="id2594075"></a><h3>Element Information</h3>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">plugin</span></td>
<td>
          <a href="gst-plugins-bad-plugins-plugin-gstrtpmanager.html#plugin-gstrtpmanager">gstrtpmanager</a>
        </td>
</tr>
<tr>
<td><span class="term">author</span></td>
<td>Wim Taymans &lt;wim.taymans@gmail.com&gt;</td>
</tr>
<tr>
<td><span class="term">class</span></td>
<td>Filter/Network/RTP</td>
</tr>
</tbody>
</table></div>
<h3>Element Pads</h3>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>send_rtp_src_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>source</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>sometimes</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtp</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>send_rtcp_src_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>source</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>request</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtcp</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>recv_rtp_src_%d_%d_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>source</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>sometimes</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtp</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>send_rtp_sink_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>sink</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>request</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtp</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>recv_rtcp_sink_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>sink</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>request</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtcp</td>
</tr>
</tbody>
</table></div>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term">name</span></td>
<td>recv_rtp_sink_%d</td>
</tr>
<tr>
<td><span class="term">direction</span></td>
<td>sink</td>
</tr>
<tr>
<td><span class="term">presence</span></td>
<td>request</td>
</tr>
<tr>
<td><span class="term">details</span></td>
<td>application/x-rtp</td>
</tr>
</tbody>
</table></div>
</div>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2626800"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2626810"></a><h3>
<a name="GstRtpBin-struct"></a>GstRtpBin</h3>
<a class="indexterm" name="id2626823"></a><pre class="programlisting">typedef struct _GstRtpBin GstRtpBin;</pre>
<p>

</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2626839"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2626850"></a><h3>
<a name="GstRtpBin--latency"></a>The "<code class="literal">latency</code>" property</h3>
<a class="indexterm" name="id2626865"></a><pre class="programlisting">  "latency"                  guint                 : Read / Write</pre>
<p>Default amount of ms to buffer in the jitterbuffers.</p>
<p>Default value: 200</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2626892"></a><h3>
<a name="GstRtpBin--sdes-cname"></a>The "<code class="literal">sdes-cname</code>" property</h3>
<a class="indexterm" name="id2626906"></a><pre class="programlisting">  "sdes-cname"               gchar*                : Read / Write</pre>
<p>The CNAME to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2626932"></a><h3>
<a name="GstRtpBin--sdes-email"></a>The "<code class="literal">sdes-email</code>" property</h3>
<a class="indexterm" name="id2626946"></a><pre class="programlisting">  "sdes-email"               gchar*                : Read / Write</pre>
<p>The EMAIL to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2626973"></a><h3>
<a name="GstRtpBin--sdes-location"></a>The "<code class="literal">sdes-location</code>" property</h3>
<a class="indexterm" name="id2626987"></a><pre class="programlisting">  "sdes-location"            gchar*                : Read / Write</pre>
<p>The LOCATION to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627014"></a><h3>
<a name="GstRtpBin--sdes-name"></a>The "<code class="literal">sdes-name</code>" property</h3>
<a class="indexterm" name="id2627028"></a><pre class="programlisting">  "sdes-name"                gchar*                : Read / Write</pre>
<p>The NAME to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627055"></a><h3>
<a name="GstRtpBin--sdes-note"></a>The "<code class="literal">sdes-note</code>" property</h3>
<a class="indexterm" name="id2627068"></a><pre class="programlisting">  "sdes-note"                gchar*                : Read / Write</pre>
<p>The NOTE to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627096"></a><h3>
<a name="GstRtpBin--sdes-phone"></a>The "<code class="literal">sdes-phone</code>" property</h3>
<a class="indexterm" name="id2627109"></a><pre class="programlisting">  "sdes-phone"               gchar*                : Read / Write</pre>
<p>The PHONE to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627136"></a><h3>
<a name="GstRtpBin--sdes-tool"></a>The "<code class="literal">sdes-tool</code>" property</h3>
<a class="indexterm" name="id2627150"></a><pre class="programlisting">  "sdes-tool"                gchar*                : Read / Write</pre>
<p>The TOOL to put in SDES messages of this session.</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2627178"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2627189"></a><h3>
<a name="GstRtpBin-clear-pt-map"></a>The "clear-pt-map" signal</h3>
<a class="indexterm" name="id2627197"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        gpointer   user_data)      : Run Last / Action</pre>
<p>
Clear all previously cached pt-mapping obtained with
GstRtpBin::request-pt-map.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627268"></a><h3>
<a name="GstRtpBin-on-bye-ssrc"></a>The "on-bye-ssrc" signal</h3>
<a class="indexterm" name="id2627275"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of an SSRC that became inactive because of a BYE packet.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627389"></a><h3>
<a name="GstRtpBin-on-bye-timeout"></a>The "on-bye-timeout" signal</h3>
<a class="indexterm" name="id2627397"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of an SSRC that has timed out because of BYE</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627511"></a><h3>
<a name="GstRtpBin-on-new-ssrc"></a>The "on-new-ssrc" signal</h3>
<a class="indexterm" name="id2627518"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of a new SSRC that entered <em class="parameter"><code>session</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627638"></a><h3>
<a name="GstRtpBin-on-ssrc-active"></a>The "on-ssrc-active" signal</h3>
<a class="indexterm" name="id2627645"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of a SSRC that is active, i.e., sending RTCP.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627760"></a><h3>
<a name="GstRtpBin-on-ssrc-collision"></a>The "on-ssrc-collision" signal</h3>
<a class="indexterm" name="id2627768"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify when we have an SSRC collision</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2627883"></a><h3>
<a name="GstRtpBin-on-ssrc-sdes"></a>The "on-ssrc-sdes" signal</h3>
<a class="indexterm" name="id2627891"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of a SSRC that is active, i.e., sending RTCP.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2628006"></a><h3>
<a name="GstRtpBin-on-ssrc-validated"></a>The "on-ssrc-validated" signal</h3>
<a class="indexterm" name="id2628014"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of a new SSRC that became validated.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2628129"></a><h3>
<a name="GstRtpBin-on-timeout"></a>The "on-timeout" signal</h3>
<a class="indexterm" name="id2628137"></a><pre class="programlisting">void                user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      ssrc,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Notify of an SSRC that has timed out</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ssrc</code></em>&#160;:</span></td>
<td> the SSRC 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2628251"></a><h3>
<a name="GstRtpBin-request-pt-map"></a>The "request-pt-map" signal</h3>
<a class="indexterm" name="id2628259"></a><pre class="programlisting">GstCaps*            user_function                      (<a href="gst-plugins-bad-plugins-gstrtpbin.html#GstRtpBin">GstRtpBin</a> *rtpbin,
                                                        guint      session,
                                                        guint      pt,
                                                        gpointer   user_data)      : Run Last</pre>
<p>
Request the payload type as <span class="type">GstCaps</span> for <em class="parameter"><code>pt</code></em> in <em class="parameter"><code>session</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>rtpbin</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>session</code></em>&#160;:</span></td>
<td> the session
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>pt</code></em>&#160;:</span></td>
<td> the pt
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2628394"></a><h2>See Also</h2>
gstrtpjitterbuffer, gstrtpsession, gstrtpptdemux, gstrtpssrcdemux
</div>
</div>
</body>
</html>