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

@ -3,6 +3,7 @@
#include "OpenGLES.h"
#include "Servo.h"
#include "DefaultUrl.h"
#include "MediaSession.h"
namespace winrt::ServoApp::implementation {
struct ServoControl : ServoControlT<ServoControl>, public servo::ServoDelegate {
@ -15,6 +16,7 @@ struct ServoControl : ServoControlT<ServoControl>, public servo::ServoDelegate {
void Stop();
void Shutdown();
hstring LoadURIOrSearch(hstring);
void SendMediaSessionAction(int32_t);
void OnLoaded(IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);