0

How do we control the navigation to a page from UVC? I want it to navigate to the "Now playing page" in the app when tapped, both when the app is closed and app is in the background. "BackgroundAudioPlayer" is used for playing the songs.

Bells
  • 1,465
  • 1
  • 19
  • 30

1 Answers1

0

The only solution I came to is - writing the current song to the Now playing item in Music & video hub as mentioned in this post - Detect application launch from Universal Volume Control

The value given into the MediaHistoryItem.PlayerContext will be obtained as the NavigationContext.QueryString in the OnNavigatedTo event. Using this value, navigate to the required page.

Community
  • 1
  • 1
Bells
  • 1,465
  • 1
  • 19
  • 30