简体   繁体   English

Windows Phone,导航到MusicPlayer

[英]Windows Phone, Navigate to MusicPlayer

I'm developing WP application, part of which is to play/stream audio files. 我正在开发WP应用程序,其中一部分是播放/流式传输音频文件。

I didn't wanted to create my own page to display info of current playing track, so I decided to use Built-in Music's player, using Microsoft.Xna.Framework.Media.MediaPlayer class I created playlists and queued playback. 我不想创建我自己的页面来显示当前播放曲目的信息,所以我决定使用内置音乐的播放器,使用Microsoft.Xna.Framework.Media.MediaPlayer类我创建了播放列表和排队播放。 It all works fine, but now I need to navigate to MusicPlayer, when user taps on track in my app, and that's the part I've no idea what to do. 一切正常,但现在我需要导航到MusicPlayer,当用户在我的应用程序中点击轨道时,这就是我不知道该怎么做的部分。

I've tried to navigate to MusicPlayer using Microsoft.Phone.Tasks.MediaPlayerLauncher, but it's not an option, because it... 我尝试使用Microsoft.Phone.Tasks.MediaPlayerLauncher导航到MusicPlayer,但它不是一个选项,因为它......

  1. Needs to receive media location in IsolatedStorage, which means streaming is impossible 需要在IsolatedStorage中接收媒体位置,这意味着无法进行流式传输
  2. Gets one media at a time, so no playlists 一次获取一个媒体,因此没有播放列表
  3. I guess I can't navigate without changing track(or starting over) 我想我无法在不改变音轨(或重新开始)的情况下导航

Is there any way to navigate to Built-in Music Player's Now Playing page, without interrupting playback? 有没有办法导航到内置音乐播放器的正在播放页面,而不会中断播放?

I think these questions might be helpful/related to what you're looking for: 我认为这些问题可能对您正在寻找的内容有帮助/相关:

  1. Detecting and launching an external application from within a Windows Phone 7.1/7.5 application 从Windows Phone 7.1 / 7.5应用程序中检测并启动外部应用程序

  2. Launching other applications in Windows phone 7 Programatically 以编程方式在Windows Phone 7中启动其他应用程序

In short, it doesn't seem like third-party apps have permission to access other apps on the phone, probably for security reasons. 简而言之,可能出于安全原因,第三方应用似乎没有权限访问手机上的其他应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM