Hololens - Trigger MediaSessionActions for play and pause buttons

This commit is contained in:
Fernando Jimenez Moreno 2019-11-29 12:44:26 +01:00
parent d633c8b9da
commit d5200ba453
11 changed files with 69 additions and 22 deletions

View file

@ -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;