mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Hololens - Trigger MediaSessionActions for play and pause buttons
This commit is contained in:
parent
d633c8b9da
commit
d5200ba453
11 changed files with 69 additions and 22 deletions
|
@ -271,6 +271,10 @@ hstring ServoControl::LoadURIOrSearch(hstring input) {
|
|||
return searchUri;
|
||||
}
|
||||
|
||||
void ServoControl::SendMediaSessionAction(int32_t action) {
|
||||
RunOnGLThread([=] { mServo->SendMediaSessionAction(action); });
|
||||
}
|
||||
|
||||
void ServoControl::TryLoadUri(hstring input) {
|
||||
if (!mLooping) {
|
||||
mInitialURL = input;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue