Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GstObject ╰── GstElement ╰── GstBaseSrc ╰── GstPushSrc ╰── GstDCCPServerSrc
This element wait for connection from a client and receive data.
DCCP (DatagramCongestion Control Protocol) is a Transport Layer protocol like TCP and UDP.
1 |
gst-launch -v filesrc location=music.mp3 ! mp3parse ! dccpclientsink host=localhost port=9011 ccid=2 |
Client
1 |
gst-launch -v dccpserversrc port=9011 ccid=2 ! decodebin ! alsasink |
Server This example pipeline will send a MP3 stream to the server using DCCP. The server will decode the MP3 and play it. Run the server pipeline first than the client pipeline.
“caps”
property “caps” GstCaps *
The caps of the source pad.
Owner: GstDCCPServerSrc
Flags: Read / Write
“ccid”
property “ccid” gint
The Congestion Control IDentified to be used.
Owner: GstDCCPServerSrc
Flags: Read / Write
Allowed values: >= 2
Default value: 2
“close-socket”
property “close-socket” gboolean
Close client socket at the end of stream.
Owner: GstDCCPServerSrc
Flags: Read / Write
Default value: TRUE
“host”
property “host” gchar *
The hostname to listen as.
Owner: GstDCCPServerSrc
Flags: Read / Write
Default value: NULL
“port”
property “port” gint
The port to listen to.
Owner: GstDCCPServerSrc
Flags: Read / Write
Allowed values: [0,65535]
Default value: 5001
“connected”
signalvoid user_function (GstDCCPServerSrc *gstdccpserversrc, gint arg1, gpointer user_data)
Flags: Run First