mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add missing media session callback in UWP embedding.
This commit is contained in:
parent
c6049eda7b
commit
5de6074ad8
7 changed files with 58 additions and 24 deletions
|
@ -548,6 +548,12 @@ void ServoControl::OnServoIMEShow(hstring text, int32_t x, int32_t y,
|
|||
});
|
||||
}
|
||||
|
||||
void ServoControl::OnServoMediaSessionPosition(double duration, double position,
|
||||
double playback_rate) {
|
||||
RunOnUIThread(
|
||||
[=] { mOnMediaSessionPositionEvent(duration, position, playback_rate); });
|
||||
}
|
||||
|
||||
void ServoControl::OnServoMediaSessionMetadata(hstring title, hstring artist,
|
||||
hstring album) {
|
||||
RunOnUIThread([=] { mOnMediaSessionMetadataEvent(title, artist, album); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue