Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-165] createSound will not stream audio from external URLs

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsaudio, createsound, ios, iphone, streaming
Reportermentalengine
AssigneeReggie Seagraves
Created2011-04-15T02:24:34.000+0000
Updated2011-04-17T01:52:12.000+0000

Description

This was fixed in android , was this issue fixed on iPhone. Basically createSound will not allow you to stream audio from external urls.

Comments

  1. Jeff Haynie 2011-04-15

    this didn't end up making 0.7 but should be target for 0.8 IMO

  2. mentalengine 2011-04-15

    Does this look like it will be resolved with the impending 0.8 release?

  3. mentalengine 2011-04-15

    bump bump bump :) any information on this?

  4. Blain Hamon 2011-04-15

    Sorry, it didn't make it into 0.8. The AVAudioPlayer class Titanium uses for playing sound on the iPhone doesn't handle streaming or any non-local files. To do streaming, I'll be delving into Audio Queue Services, which is much more low-level, and switch between the two methods depending on the url.

    I do believe in 0.8, however, if it is not a stream, you could use HTTPClient to download the data, then save it as a file, and play the file passing the file.url in. Titanium would translate the url into a filepath for AVAudioPlayer.

  5. Blain Hamon 2011-04-15

    This was fixed a while back, with even a streamed url in Kitchen Sink nowadays.

JSON Source