mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Switch play and pause buttons according to playback state
This commit is contained in:
parent
b5b8c6c2a8
commit
07483f1d44
4 changed files with 34 additions and 15 deletions
|
@ -1790,7 +1790,8 @@ where
|
|||
match event {
|
||||
MediaSessionEvent::PlaybackStateChange(ref state) => {
|
||||
match state {
|
||||
MediaSessionPlaybackState::Playing => (),
|
||||
MediaSessionPlaybackState::Playing |
|
||||
MediaSessionPlaybackState::Paused => (),
|
||||
_ => return,
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue