mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
MediaSession show media controls on Android
This commit is contained in:
@@ -1804,9 +1804,15 @@ impl HTMLMediaElement {
|
||||
PlaybackState::Playing => {
|
||||
media_session_playback_state = MediaSessionPlaybackState::Playing;
|
||||
},
|
||||
PlaybackState::Buffering => {
|
||||
// Do not send the media session playback state change event
|
||||
// in this case as a None_ state is expected to clean up the
|
||||
// session.
|
||||
return;
|
||||
},
|
||||
_ => {},
|
||||
};
|
||||
println!(
|
||||
debug!(
|
||||
"Sending media session event playback state changed to {:?}",
|
||||
media_session_playback_state
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user