Windows Phone 8.1音乐库获取当前媒体队列 [英] windows phone 8.1 music library get current media queue

查看:88
本文介绍了Windows Phone 8.1音乐库获取当前媒体队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与Windows Phone 8 MediaPlayer.Queue一样,如何在Windows Phone 8.1(运行时)中获取当前媒体队列 它可用还是我们必须执行? 类似地,是否存在IsShuffled功能?

How to get current media queue in windows phone 8.1 (runtime) as in windows phone 8 MediaPlayer.Queue Is it available or we have to implement? Similarly IsShuffled functionality is there ?

推荐答案

The MediaPlayer API belongs to the Microsoft.Xna.Framework.Media namespace which is no longer available for WinRT components. So you can't use it but you can implement your own logic for it using the MediaElement API which has sufficient properties for a media player except for the logic of queuing etc.

说明此处 msdn-code-sample 肯定会帮助您.

对于背景音乐播放器,您应该使用

For background music player you should use the SystemMediaTransportControls API and attach the events that occur when your app is running in background.

链接具有背景音频说明.似乎很有帮助.

This link has a background audio explanation. Seems helpful.

这篇关于Windows Phone 8.1音乐库获取当前媒体队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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