mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-20 15:07:00 +00:00
Added websocket wrapper for TCP connection to Android receiver.
This commit is contained in:
parent
b339f4f487
commit
ad8f3985a3
22 changed files with 1165 additions and 277 deletions
|
@ -16,18 +16,19 @@ impl PlayMessage {
|
|||
|
||||
#[derive(Serialize, Debug)]
|
||||
pub struct SeekMessage {
|
||||
pub time: u64,
|
||||
pub time: f64,
|
||||
}
|
||||
|
||||
impl SeekMessage {
|
||||
pub fn new(time: u64) -> Self {
|
||||
pub fn new(time: f64) -> Self {
|
||||
Self { time }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct PlaybackUpdateMessage {
|
||||
pub time: u64,
|
||||
pub time: f64,
|
||||
pub duration: f64,
|
||||
pub state: u8 //0 = None, 1 = Playing, 2 = Paused
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue