我有一个Windows Phone 7应用程序,可以在WP7设备上播放互联网广播流。如果你在WP8上运行该应用程序,它只是拒绝播放。我已经尝试将应用程序升级为实际的WP8应用程序,只是为了看看这是否有所不同,但似乎并没有。
我得到的异常是一个COMException,带有来自HRESULT的异常消息:0xC00D2EE0
堆栈跟踪是:
at Microsoft.Phone.BackgroundAudio.BackgroundAudioPlayer.Play()
at HotRadioAgent.AudioPlayer.OnUserAction(BackgroundAudioPlayer player, AudioTrack track, UserAction action, Object param)
at Microsoft.Phone.BackgroundAudio.AudioPlayerAgent.CallOnUserAction(ParameterPropertyBag parameters)
at Microsoft.Phone.BackgroundAudio.AudioPlayerAgent.Invoke(Uri uri, ParameterPropertyBag parameters)
at Microsoft.Phone.BackgroundAgentDispatcher.AgentRequest.Invoke()
at Microsoft.Phone.BackgroundAgentDispatcher.InvocationThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
流本身正在通过音频播放代理(不是音频流代理)播放,如上所述,它可以在WP7设备上正常工作。
相关信息流为http://stream1.tune-in.co.uk:7002/;stream.mp3
如果有任何音频大师可以帮我解决这个问题,我们将不胜感激。