响应通用音量控制“发射"当应用程序运行时 [英] Responding to universal volume control "launch" while the app is running

查看:26
本文介绍了响应通用音量控制“发射"当应用程序运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果应用程序不在前台,点击通用音量控制 (UVC) 中的曲目名称即可使用曲目的上下文信息(通过 MediaHistory.Instance.NowPlaying 设置)启动应用程序.

If the application is not in the foreground, tapping on the track name in the Universal Volume Control (UVC) launches the application with the context information of the track (set via MediaHistory.Instance.NowPlaying).

但是,如果应用程序已经在运行,则不会进行此类导航.我想对此做出回应,以便像内置媒体播放器一样将用户重定向到正在播放"体验.

However, if the application is already running, no such navigation is made. I'd like to respond to it in order to redirect the user to the "now playing" experience as the built in media player does.

是否发生了我不知道的事件,或者是否未考虑这种情况?

Is there an event raised that I'm not aware of, or was this scenario not considered?

推荐答案

正如 tiwahu 所提到的,这个问题似乎已在 WP8 中解决.它现在会导致应用退出并重新启动.

As mentioned by tiwahu, this issue appears to has been resolved in WP8. It now causes the app to exit and re-launch.

这篇关于响应通用音量控制“发射"当应用程序运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆