通用音量控制导航WP8

时间:2015-02-27 05:07:29

标签: c# windows-phone-8 background-agents universal-volume-control

我们如何控制从UVC导航到页面?我希望它在应用程序关闭时导航到应用程序中的“正在播放的页面”,当应用程序关闭且应用程序在后台时。 “BackgroundAudioPlayer”用于播放歌曲。

1 个答案:

答案 0 :(得分:0)

我遇到的唯一解决方案是 - 将当前歌曲写入Music&中的Now play项目。本文中提到的视频中心 - Detect application launch from Universal Volume Control

MediaHistoryItem.PlayerContext中的值将作为NavigationContext.QueryString事件中的OnNavigatedTo获取。使用此值,导航到所需页面。