且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

[UWP]背景音频播放器崩溃| Windows 10 Universal Apps

更新时间:2023-02-01 17:24:38

您好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