Detect application launch from Universal Volume Control

I have a mango device oriented app that plays music through BackgroundAudioAgent. Thus, it integrates with the universal volume control (UVC).

Is there a way to detect when an application starts by clicking on artist details in UVC?

Alternatively, is there a way to set a deep link to use UVC?

I want me to be able to go to the "Now play" page, and not the main page when the application is launched via UVC.

Update
It also affects the launch of the application from the current game tile in the music and video center, because BackgroundAudioPlayer automatically integrates with this part of the hub.

+4
source share
1 answer

Using MediaHistory Integration Zune Hub solves this problem. He also passes a test test of the Marketplace's test suite features in the RC SDK, so this is a good sign.

If you start with an example on MSDN, calling the following code from GetNextTrack() and GetPreviousTrack() in the background audio agent means that when you click UVC or Zune Now Playing, you can return the navigation request line shown here ...

  private AudioTrack ChangeTrack() { AudioTrack track = _playList[currentTrackNumber]; IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication(); Stream s = isoStore.OpenFile("ApplicationIcon.png", FileMode.Open); MediaHistoryItem nowPlaying = new MediaHistoryItem(); nowPlaying.Title = "Background Audio is playing!"; nowPlaying.ImageStream = s; nowPlaying.PlayerContext.Add("keyString", track.Title); MediaHistory.Instance.NowPlaying = nowPlaying; return track; } 
+3
source

All Articles