aboutsummaryrefslogtreecommitdiff
path: root/client/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/lib.rs')
-rw-r--r--client/src/lib.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs
index a3c61aa..bd9882c 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -4,6 +4,7 @@
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
use anyhow::Result;
+use jc::stream::StreamSpec;
use jellycommon::NodePublic;
use log::debug;
use reqwest::{
@@ -102,17 +103,12 @@ impl Session {
Ok(())
}
- pub fn stream(&self, id: &str, tracks: &[usize], webm: bool) -> String {
+ pub fn stream(&self, id: &str, stream_spec: &StreamSpec) -> String {
format!(
- "{}/n/{}/stream?tracks={}&webm={}&{}",
+ "{}/n/{}/stream?{}&{}",
self.instance.base(),
id,
- tracks
- .iter()
- .map(|v| format!("{v}"))
- .collect::<Vec<_>>()
- .join(","),
- if webm { "1" } else { "0" },
+ todo!(),
self.session_param()
)
}