diff options
Diffstat (limited to 'stream/src')
-rw-r--r-- | stream/src/jhls.rs | 5 | ||||
-rw-r--r-- | stream/src/lib.rs | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/stream/src/jhls.rs b/stream/src/jhls.rs index 600d945..e61e918 100644 --- a/stream/src/jhls.rs +++ b/stream/src/jhls.rs @@ -41,7 +41,10 @@ pub async fn jhls_stream( &node.public, match &track_sources[i] { TrackSource::Local(x) => x, - TrackSource::Remote => return Some(Err(anyhow!("das geht nicht"))), + // TODO fetch seek index from the remote and create a single session to be sent in jhls + TrackSource::Remote(_) => { + return Some(Err(anyhow!("remote tracks dont work yet"))) + } }, ) { Ok(segments) => Some(Ok::<_, anyhow::Error>(JhlsTrack { diff --git a/stream/src/lib.rs b/stream/src/lib.rs index ee5c78a..e2137d3 100644 --- a/stream/src/lib.rs +++ b/stream/src/lib.rs @@ -72,7 +72,7 @@ pub async fn stream( .ok_or(anyhow!("track does not exist"))? { TrackSource::Local(t) => t.to_owned(), - TrackSource::Remote => bail!("track is not local"), + TrackSource::Remote(_) => bail!("track is not local"), }, ) }) |