diff options
Diffstat (limited to 'server/src/routes/ui/player.rs')
-rw-r--r-- | server/src/routes/ui/player.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs index 8b8adf6..e3c5cb2 100644 --- a/server/src/routes/ui/player.rs +++ b/server/src/routes/ui/player.rs @@ -29,6 +29,16 @@ pub struct PlayerConfig { pub a: Option<TrackID>, pub v: Option<TrackID>, pub s: Option<TrackID>, + pub t: Option<f64>, +} + +impl PlayerConfig { + pub fn seek(t: f64) -> Self { + Self { + t: Some(t), + ..Default::default() + } + } } #[get("/n/<id>/player?<conf..>", rank = 4)] |