mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
MediaSession: refactor embedder API. Fix Android build
This commit is contained in:
parent
89d9e3ad78
commit
7ca74d598c
5 changed files with 65 additions and 17 deletions
|
@ -219,10 +219,11 @@ pub struct MediaMetadata {
|
|||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#enumdef-mediasessionplaybackstate
|
||||
#[repr(i32)]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub enum MediaSessionPlaybackState {
|
||||
/// The browsing context does not specify whether it’s playing or paused.
|
||||
None_,
|
||||
None_ = 1,
|
||||
/// The browsing context has paused media and it can be resumed.
|
||||
Playing,
|
||||
/// The browsing context is currently playing media and it can be paused.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue