windows phone 8.1 music library get current media queue

杀马特。学长 韩版系。学妹 提交于 2019-12-10 18:27:20

问题


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 ?


回答1:


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.

The explanation here and the msdn-code-sample would surely help you out.

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.



来源:https://stackoverflow.com/questions/35450295/windows-phone-8-1-music-library-get-current-media-queue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!