[TIMOB-20080] Windows: Ti.Media.AudioPlayer background audio for Windows 10
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Resolved |
Resolution | Won't Do |
Resolution Date | 2020-06-30T14:48:44.000+0000 |
Affected Version/s | Release 5.1.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Christopher Williams |
Created | 2015-12-01T05:47:04.000+0000 |
Updated | 2020-06-30T14:48:44.000+0000 |
Description
Per thread from [PR 488](https://github.com/appcelerator/titanium_mobile_windows/pull/488)
{quote}
The feature (AudioCategory::BackgroundCapableMedia) is supported in Windows 10, but is deprecated and there's a document on using background audio (I think using background tasks). I don't think we want to just remove the line in Win10+. We probably want to disable the deprecation warning on Windows 10 for this specific instance until/unless we use the new API/flow for doing the background audio.
I'd suggest we turn off the compiler warning for this file (or stifle it in some way) on Win 10 compiles, and open a ticket for replacing the mechanism to use the new API in the future. See https://msdn.microsoft.com/en-us/library/windows/apps/mt282140.aspx and https://social.msdn.microsoft.com/Forums/windowsapps/en-US/46432468-b968-4570-a0ce-48babe838f2d/uwpbackground-audio-with-mft-in-windows-10
{quote}
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/569
Reopening this ticket until TIMOB-20035 is addressed.
So based on the investigation, background audio does not work on Windows 10 Mobile due to the system limitation. (See comments in TIMOB-20035) We could close this ticket as "Won't fix", but I think it's better to just remove "6.0.0" target for now to get more time for further investigation. I will update the API docs to address this limitation.