aboutsummaryrefslogtreecommitdiff
path: root/stream/src
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src')
-rw-r--r--stream/src/hls.rs5
-rw-r--r--stream/src/lib.rs8
-rw-r--r--stream/src/segment.rs18
3 files changed, 31 insertions, 0 deletions
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 <metamuffin.org>
+*/
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 <metamuffin.org>
+*/
+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 <metamuffin.org>
+*/
+use jellycommon::{stream::StreamSpec, LocalTrack, Node};
+use std::ops::Range;
+use tokio::io::DuplexStream;
+
+pub async fn stream_segment(
+ node: Node,
+ track_sources: Vec<LocalTrack>,
+ spec: StreamSpec,
+ range: Range<usize>,
+ b: DuplexStream,
+) {
+
+}