From 30e3d18c6ec50572365baaaaa3542769e82e763a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 30 Sep 2023 15:21:57 +0200 Subject: move some files around for new remuxer + small changes --- stream/src/hls.rs | 5 +++++ stream/src/lib.rs | 8 ++++++++ stream/src/segment.rs | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 stream/src/hls.rs create mode 100644 stream/src/segment.rs (limited to 'stream') diff --git a/stream/src/hls.rs b/stream/src/hls.rs new file mode 100644 index 0000000..6ddc2a4 --- /dev/null +++ b/stream/src/hls.rs @@ -0,0 +1,5 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ diff --git a/stream/src/lib.rs b/stream/src/lib.rs index 5051b18..5f9edb9 100644 --- a/stream/src/lib.rs +++ b/stream/src/lib.rs @@ -1,3 +1,11 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ +pub mod hls; +pub mod segment; + use anyhow::{anyhow, bail, Context, Result}; use jellybase::CONF; use jellycommon::{ diff --git a/stream/src/segment.rs b/stream/src/segment.rs new file mode 100644 index 0000000..ed4f5ef --- /dev/null +++ b/stream/src/segment.rs @@ -0,0 +1,18 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ +use jellycommon::{stream::StreamSpec, LocalTrack, Node}; +use std::ops::Range; +use tokio::io::DuplexStream; + +pub async fn stream_segment( + node: Node, + track_sources: Vec, + spec: StreamSpec, + range: Range, + b: DuplexStream, +) { + +} -- cgit v1.2.3-70-g09d2