[TIMOB-165] createSound will not stream audio from external URLs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | audio, createsound, ios, iphone, streaming |
Reporter | mentalengine |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:24:34.000+0000 |
Updated | 2011-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.
this didn't end up making 0.7 but should be target for 0.8 IMO
Does this look like it will be resolved with the impending 0.8 release?
bump bump bump :) any information on this?
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.
This was fixed a while back, with even a streamed url in Kitchen Sink nowadays.