mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
extended HostTrait with on_media_session_set_position_state
This commit is contained in:
parent
e268193b8d
commit
4d215c9557
4 changed files with 53 additions and 4 deletions
|
@ -243,9 +243,9 @@ pub enum MediaSessionPlaybackState {
|
|||
/// https://w3c.github.io/mediasession/#dictdef-mediapositionstate
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct MediaPositionState {
|
||||
pub duration: Option<f64>,
|
||||
pub playback_rate: Option<f64>,
|
||||
pub position: Option<f64>,
|
||||
pub duration: f64,
|
||||
pub playback_rate: f64,
|
||||
pub position: f64,
|
||||
}
|
||||
|
||||
impl MediaPositionState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue