Using MediaTransportControls with BackgroundMediaPlay in Background Audio Task UWP

↘锁芯ラ 提交于 2019-12-08 10:09:01

问题


I am building a UWP App that plays Audio in the Background. I have successfully set it up and it's running with a simple play/pause Button.

Now I need to play Audio using a MediaElement control that has MediaTransportControls enabled. I have read that it is impossible to play Background Audio using Media Element. Here in this article they suggest using BackgroundMediaPlayer: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e6bb37ec-49f7-4e5a-91ef-44ae3725a761/uwpbackground-audio-on-windowsphone-10-is-it-really-impossible-for-mediaelement?forum=wpdevelop&prof=required

Is it possible to use the same MediaTransportControls with BackgroundMediaPlayer? Or I have to create my own controls? A button, slider and Timer? Any example I didn't find?

来源:https://stackoverflow.com/questions/37511936/using-mediatransportcontrols-with-backgroundmediaplay-in-background-audio-task-u

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