mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-24 08:36:19 +00:00
39 lines
1.2 KiB
Rust
39 lines
1.2 KiB
Rust
// Copyright (C) 2024, Asymptotic Inc.
|
|
// Author: Sanchayan Maity <sanchayan@asymptotic.io>
|
|
//G
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
|
|
// If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
// <https://mozilla.org/MPL/2.0/>.
|
|
//
|
|
// 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::*;
|
|
|
|
pub mod imp;
|
|
|
|
glib::wrapper! {
|
|
pub struct QuinnQuicSink(ObjectSubclass<imp::QuinnQuicSink>) @extends gst_base::BaseSink, gst::Element, gst::Object;
|
|
}
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|
gst::Element::register(
|
|
Some(plugin),
|
|
"quinnquicsink",
|
|
gst::Rank::MARGINAL,
|
|
QuinnQuicSink::static_type(),
|
|
)
|
|
}
|