{ "id": "62303", "key": "TIMOB-1671", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:58:59.000+0000", "created": "2011-04-15T02:58:58.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-31T23:19:38.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Several premium customers are asking that we support streaming\r\naudio for use in background audio.
I was able to semi hack it use instructions I found here:\n\nhttp://developer.appcelerator.com/question/47291/background-audio-i...
\nBut using the method above means that the audio controls to stop\nyour stream dont work, you have to go back to the app to stop the\nmusic which is not very elegant.
Dupe of #2632.
This ticket is NOT a duplicate of #2632.
\nTitanium 1.6.1 does NOT support background audio properly (with\nremote controls) for STREAMING audio files (it does work properly\nfor local sound files).
\nAgain, when you start() an AudioPlayer, it does play in the\nbackground, but does NOT support remote controls (like when swiping\nleft on the multitasking bar OR double tapping home when the device\nis locked). On the other hand, when you play() a Sound, both\nbackground audio AND the remote controls work correctly.
\nThe FIX should be simple: just add a listener for\nkTiRemoteControlNotification in TiMediaAudioPlayerProxy.m and have\nit call a method similar to remoteControlEvent: in\nTiMediaSoundProxy.m.
\nPlease add Instant Automatic to the list of premium customers\nwho NEED this feature ASAP. Thanks.
Also, remember that you must test background audio on a device\nas it is not supported in the iOS Simulator.
\nI also opened up a help desk ticket about this:
\nhttp://support.appcelerator.com/tickets/HEX-26948-985/