Skip to content
Permalink
Browse files

Hololens - MediaSession controls UI

  • Loading branch information
ferjm committed Nov 27, 2019
1 parent 5cc68f5 commit c810962d7814a85fdfa394742e621f6ebb75b866
@@ -143,4 +143,11 @@ void BrowserPage::OnURLEdited(IInspectable const &,
}
}

void BrowserPage::OnMediaControlsPlayClicked(
Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &) {}
void BrowserPage::OnMediaControlsPauseClicked(
Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &) {}

} // namespace winrt::ServoApp::implementation
@@ -41,6 +41,10 @@ struct BrowserPage : BrowserPageT<BrowserPage> {
Windows::UI::Xaml::RoutedEventArgs const &);
void OnXRPkgWarningDismissClick(Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);
void OnMediaControlsPlayClicked(Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);
void OnMediaControlsPauseClicked(Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);

private:
void BindServoEvents();
@@ -137,5 +137,14 @@
<Button Margin="0,10,10,0" Click="OnXRPkgWarningDismissClick">Dismiss</Button>
</StackPanel>
</StackPanel>
<CommandBar Grid.Row="3" Visibility="Collapsed">
<AppBarButton Icon="Play" Label="Play" Click="OnMediaControlsPlayClicked"/>
<AppBarButton Icon="Pause" Label="Pause" Click="OnMediaControlsPauseClicked"/>

<CommandBar.Content>
<TextBlock Text="Now playing..." Margin="12,14"/>
</CommandBar.Content>
</CommandBar>
</Grid>

</Page>

0 comments on commit c810962

Please sign in to comment.
You can’t perform that action at this time.