Windows Phone 8.1音乐库获取当前媒体队列 [英] windows phone 8.1 music library get current media queue
问题描述
与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 ?
推荐答案
MediaElement API,除了排队等逻辑外,它具有足够的媒体播放器属性.
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屋!