积极答复者
MediaElement在不同的Page播放同一首歌曲,怎么实现?

问题
答案
-
Hi,
如果你在Page当中直接用的话的确会有这个问题,而且放在Frame中也应该解决不了(即使可以也很难控制)。这个应该用Background task来解决而且,牵涉到硬件非常复杂,有一个专门的白皮书在讲这个你可以参考:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh770517
这里有一个示例你也可以参考:
http://code.msdn.microsoft.com/windowsapps/Background-Audio-c-Metro-d2fc7719#content
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2012年12月5日 11:22
- 已标记为答案 赵召 2012年12月6日 3:10
全部回复
-
Hi,
如果你在Page当中直接用的话的确会有这个问题,而且放在Frame中也应该解决不了(即使可以也很难控制)。这个应该用Background task来解决而且,牵涉到硬件非常复杂,有一个专门的白皮书在讲这个你可以参考:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh770517
这里有一个示例你也可以参考:
http://code.msdn.microsoft.com/windowsapps/Background-Audio-c-Metro-d2fc7719#content
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2012年12月5日 11:22
- 已标记为答案 赵召 2012年12月6日 3:10
-
Hi,
上面那个例子写的太过复杂这有一个比较简单的同样使用Background task实现:
http://code.msdn.microsoft.com/windowsapps/Background-Audio-in-WinRT-344bcf4d
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已建议为答案 Aaron XueModerator 2012年12月6日 7:19