[UWP]背景音频播放器崩溃| Windows 10 Universal Apps [英] [UWP]Background Audio Player is Crashing | Windows 10 Universal Apps

查看:58
本文介绍了[UWP]背景音频播放器崩溃| Windows 10 Universal Apps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用背景音频任务创建一个小型媒体播放器和流媒体。


我的后台任务被间歇性地杀死几个小时后播放歌曲。我在每个方法中使用try catch块来捕获并在Web上记录错误。


但是没有记录错误,仍然存在杀死后台任务的事情。


崩溃后,我无法在不重启我的应用程序的情况下对Background Media Player做任何事情。


请任何帮助!


谢谢


解决方案

您好AtulMSDN,


由于您没有提供测试代码,我使用了Github的示例代码( https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundAudio ) 
来测试背景音频。我测试了3个小时,它在我身边工作正常。也许您可以使用示例代码播放背景音频,看看您是否仍然可以重现此问题。您还可以看到系统事件查看器,看它是否记录了


如果您无法使用默认样本重现问题,请与我们分享一份repro示例,以便我们帮助您进行分析。


祝你好运,


Barry



Hi,

I am creating a small media player and streamer using Background Audio Task.

My background task being killed intermittently after playing songs for hours. I am using try catch block in each and every method to capture and log the error on web.

But there are no errors logged and still there is something which is killing background task.

After the crash I am not able to do anything with Background Media Player without restarting my app.

Please any Help!

Thanks

解决方案

Hi AtulMSDN,

Since you didn’t provide test code, I used sample code from Github(https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundAudio)  to test Background Audio. I have test it for 3 hours and it works fine on my side. Maybe you can use the sample code to play Background Audio and see if you can still reproduce this issue. You can also see your system event viewer to see if it logs something there.

If you cannot reproduce the problem with the default sample, please share us a repro sample so that we can help you analyze it.

Best regards,

Barry


这篇关于[UWP]背景音频播放器崩溃| Windows 10 Universal Apps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆