aboutsummaryrefslogtreecommitdiff
path: root/stream/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/lib.rs')
-rw-r--r--stream/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs
index 68b7e44..1f32239 100644
--- a/stream/src/lib.rs
+++ b/stream/src/lib.rs
@@ -148,8 +148,9 @@ async fn copy_stream(mut inp: File, mut out: DuplexStream, mut amount: usize) ->
// TODO functions to test seekability, get live status and enumate segments
trait MediaSource {
+ fn loaded_ranges(&self) -> Result<Vec<Range<(u64, u64)>>>;
/// Seeks to some position close to, but before, `time` ticks.
- fn seek(&mut self, time: u64) -> Result<()>;
+ fn seek(&mut self, segment: u64, time: u64) -> Result<()>;
/// Retrieve headers (info and tracks) for some segment.
fn segment_headers(&mut self, seg: u64) -> Result<(Info, Tracks)>;
/// Returns the next block and the current segment index