Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1671] iOS: Add streaming audio support for background audio, iOS 4

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T02:58:59.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterRalf Pfeiffer
AssigneeIngo Muschenetz
Created2011-04-15T02:58:58.000+0000
Updated2017-05-31T23:19:38.000+0000

Description

Several premium customers are asking that we support streaming audio for use in background audio.

Comments

  1. Anthony Webb 2011-04-15

    I was able to semi hack it use instructions I found here: http://developer.appcelerator.com/question/47291/background-audio-in-14#113331"> http://developer.appcelerator.com/question/47291/background-audio-i...

    But using the method above means that the audio controls to stop your stream dont work, you have to go back to the app to stop the music which is not very elegant.

  2. Stephen Tramer 2011-04-15

    Dupe of #2632.

  3. Gerry Cardinal III 2011-04-15

    This ticket is NOT a duplicate of #2632.

    Titanium 1.6.1 does NOT support background audio properly (with remote controls) for STREAMING audio files (it does work properly for local sound files).

    Again, when you start() an AudioPlayer, it does play in the background, but does NOT support remote controls (like when swiping left on the multitasking bar OR double tapping home when the device is locked). On the other hand, when you play() a Sound, both background audio AND the remote controls work correctly.

    The FIX should be simple: just add a listener for kTiRemoteControlNotification in TiMediaAudioPlayerProxy.m and have it call a method similar to remoteControlEvent: in TiMediaSoundProxy.m.

    Please add Instant Automatic to the list of premium customers who NEED this feature ASAP. Thanks.

  4. Gerry Cardinal III 2011-04-15

    Also, remember that you must test background audio on a device as it is not supported in the iOS Simulator.

    I also opened up a help desk ticket about this:
    http://support.appcelerator.com/tickets/HEX-26948-985/">http://support.appcelerator.com/tickets/HEX-26948-985/

  5. Rick Blalock 2011-05-19

    Another customer is wanting the ability to control audio when in the background (using the multitasking ipod controls) Ticket# APP-818431
  6. Dustin Hume 2012-09-26

    See here on how to add support for Background Streaming controls: http://developer.appcelerator.com/question/47291/background-audio-in-14#answer-248128

JSON Source