mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -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 &);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue