Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Shoutcast Streaming Android

I thought I would share my experience to maybe save someone else some time and possibly come up with a workaround on this thread. Here is my specs

  • Appcelerator SDK 1.4
  • Windows XP
  • Samsung Galaxy S
  • Android 2.1-Update1

I have been playing around with streaming and have found suitable solutions for iphone (not tested.. waiting for iphone to arrive before I go there ;) ).. But Android hmm

Using the Appcelerator Ti.Media.createAudioPlayer() I have found that it works great with Android 2.2 only (tested in Emulation).

The Ti.Media.createAudioPlayer() does NOT work anything below Android 2.2 (Tested on Galaxy S - Android 2.1-update1 and Emulation). I suspect it is because Android introduced "New media framework (Stagefright) that supports local file playback and HTTP progressive streaming" in the 2.2 release.

(source: http://developer.android.com/sdk/android-2.2-highlights.html)

I have however tested shoutcast streaming apps on my Galaxy S (Android 2.1-update1) and they work flawlessly, but I think they are native apps…

In light of this, I am hoping I am wrong or there is a suitable work around for old Android releases?

— asked August 19th 2010 by Kam Kasravi
  • 1.4
  • android
  • mobile
  • sdk
  • shoutcast
  • streaming
1 Comment
  • Just an update on my experiments..

    I got it working on Android 2.1-Update1 (Samsung Galaxy S) using a php proxy script which redirects the audio from port 7777 to port 80, however the audio has a pop sound.

    Testings with port 80 audio proxy

    • Device Android 2.1-Update1 = streams but with annoying audio pop
    • Emulation 2.2 = Does not connect
    — commented August 19th 2010 by Kam Kasravi

3 Answers

  • Is there anyone willing to assist?

    If Titanium can not do streaming from Shoutcast pre-Android 2.2, is there someone willing to build a plugin for Titanium? (will pay $$).

    My fingers are crossed that SDK 1.5 solves this issue

    Thanks

    — answered August 24th 2010 by Jay J
    permalink
    0 Comments
  • Did you managed to solve your issue? I'm trying to do the same, playing a shoutcast stream in my Android 2.2 device with no luck.

    I've tested with a mp3 file directly and it works fine but shoutcast don't.

    Can you post your PHP proxy script?

    Thank you,

    Andy

    — answered September 22nd 2010 by Andres Olivares
    permalink
    0 Comments
  • just an update… I have an iPHONE 3gs, and TWO DROIDS 2.2.2 ….
    I am able to stream a single MP3 file ( does not end) to all of the devices with no issues except for one:http://developer.appcelerator.com/question/123372/i-have-two-droid-222-phones-app-runs-on-one-crashes-on-the-other

    They all work using ti sdk 1.8.
    just an update.

    — answered July 29th 2011 by vincent youmans
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.