Merge branch 'quinn-cleanups' into 'main'

Miscellaneous quinn plugin cleanups

See merge request gstreamer/gst-plugins-rs!1558
This commit is contained in:
Sanchayan Maity 2024-05-02 16:40:50 +00:00
commit 63fd660f3b
7 changed files with 34 additions and 4 deletions

View file

@ -88,6 +88,7 @@ default-members = [
"net/webrtc/protocol",
"net/webrtc/signalling",
"net/ndi",
"net/quinn",
"text/ahead",
"text/json",

View file

@ -33,6 +33,9 @@ You will find the following plugins in this repository:
- `onvif`: Various elements for parsing, RTP (de)payloading, overlaying of ONVIF timed metadata.
- `quinn`: Transfer data over the network using QUIC
- `quinnquicsink`/`quinnquicsrc`: Send and receive data using QUIC
- `raptorq`: Encoder/decoder element for RaptorQ RTP FEC mechanism.
- `reqwest`: An HTTP source element based on the [reqwest](https://github.com/seanmonstar/reqwest) library.

View file

@ -3896,7 +3896,7 @@
"author": "Sanchayan Maity <sanchayan@asymptotic.io>",
"description": "Send data over the network via QUIC",
"hierarchy": [
"GstQuinnQUICSink",
"GstQuinnQuicSink",
"GstBaseSink",
"GstElement",
"GstObject",
@ -4056,7 +4056,7 @@
"author": "Sanchayan Maity <sanchayan@asymptotic.io>",
"description": "Receive data over the network via QUIC",
"hierarchy": [
"GstQuinnQUICSrc",
"GstQuinnQuicSrc",
"GstBaseSrc",
"GstElement",
"GstObject",

View file

@ -324,7 +324,7 @@ impl ObjectImpl for QuinnQuicSink {
#[glib::object_subclass]
impl ObjectSubclass for QuinnQuicSink {
const NAME: &'static str = "GstQuinnQUICSink";
const NAME: &'static str = "GstQuinnQuicSink";
type Type = super::QuinnQuicSink;
type ParentType = gst_base::BaseSink;
}

View file

@ -7,6 +7,19 @@
//
// SPDX-License-Identifier: MPL-2.0
/**
* element-quinnquicsink:
* @short-description: Send data over the network via QUIC
*
* ## Example sender pipeline
* ```bash
* gst-launch-1.0 -v -e audiotestsrc num-buffers=512 ! \
* audio/x-raw,format=S16LE,rate=48000,channels=2,layout=interleaved ! opusenc ! \
* quinnquicsink server-name="quic.net" client-address="127.0.0.1" client-port=6001 \
* server-address="127.0.0.1" server-port=6000 certificate-file="certificates/fullchain.pem" \
* private-key-file="certificates/privkey.pem"
* ```
*/
use gst::glib;
use gst::prelude::*;

View file

@ -315,7 +315,7 @@ impl ObjectImpl for QuinnQuicSrc {
#[glib::object_subclass]
impl ObjectSubclass for QuinnQuicSrc {
const NAME: &'static str = "GstQuinnQUICSrc";
const NAME: &'static str = "GstQuinnQuicSrc";
type Type = super::QuinnQuicSrc;
type ParentType = gst_base::BaseSrc;
}

View file

@ -7,6 +7,19 @@
//
// SPDX-License-Identifier: MPL-2.0
/**
* element-quinnquicsrc:
* @short-description: Receive data over the network via QUIC
*
* ## Example receiver pipeline
* ```bash
* gst-launch-1.0 -v -e quinnquicsrc caps=audio/x-opus server-name="quic.net" \
* certificate-file="certificates/fullchain.pem" private-key-file="certificates/privkey.pem" \
* server-address="127.0.0.1" server-port=6000 ! opusparse ! opusdec ! \
* audio/x-raw,format=S16LE,rate=48000,channels=2,layout=interleaved ! \
* audioconvert ! autoaudiosink
* ```
*/
use gst::glib;
use gst::prelude::*;