MediaSession: refactor embedder API. Fix Android build

This commit is contained in:
Fernando Jiménez Moreno 2019-10-09 18:06:27 +02:00
parent 89d9e3ad78
commit 7ca74d598c
5 changed files with 65 additions and 17 deletions

View file

@ -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 its 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.