Titanium Community Questions & Answer Archive

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

Android and Shoutcast Streaming

I'm trying to recive a mp3 streaming into Android (there's no problem with iPhone).

Is there any problem?

My code:
var url = 'http://78.159.104.207:80';
var streamer = Ti.Media.createAudioPlayer();
streamer.url = url;
streamer.start();

Thank you!
Info: SDK 1.3

— asked May 23rd 2010 by Eric Sala
  • shoutcast
  • streaming
1 Comment
  • I am running into the same exact issue. The example .mp3 stream in the KitchenSink works just fine, but when i throw a .pls/.m3u at it, it just hangs.

    Anyone able to lend a helping hand?

    — commented June 3rd 2010 by Mark Weinmann

8 Answers

  • I have the same problem, so if anyone knows how to play an MP3 stream, please let us know

    — answered June 10th 2010 by Stephen Page
    permalink
    0 Comments
  • The below code works for me on Android and iPhone.

    var url = "http://radiosonar.solent.ac.uk:8000/streamhi.mp3";
    var streamer = Titanium.Media.createAudioPlayer({url:url,preload:true,allowBackground:true});

    (No support for PLS/M3U by the looks of it.)

    — answered June 10th 2010 by Scott Robinson
    permalink
    1 Comment
    • You can use a prefetcher like this:https://github.com/AppWerft/DLRmediathek/blob/master/Resources/controls/resolveplaylist.js

      — commented February 18th 2015 by Rainer Schleevoigt
  • Same problem here.

    In fact not even Kitchen Sink sample works properly on my Nexus One (Running Android 2.1)

    — answered July 7th 2010 by Javier Zarza
    permalink
    0 Comments
  • Any solution for this?

    — answered August 25th 2011 by Pablo Liz
    permalink
    0 Comments
  • Has this been fixed yet?

    — answered September 24th 2011 by Stephen Page
    permalink
    0 Comments
  • Any solution? :-(

    — answered August 13th 2012 by Juan Luis Suarez dos Santos
    permalink
    0 Comments
  • How to get the Song History of Shoutcast into Titanium Studio Mobile App?

    — answered September 20th 2012 by Rudolf Pietersma
    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.