Shoutcast / Icecast playback? What would be the best way?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi everyone,

    I was wondering if anyone had ever tried to make an Icecast/Shoutcast player for Android, and found out the best way to do it?

    As far as I know (but please correct me if I'm wrong), there's no native support for streaming from CF2.5's audio stack.

    I've been toying a bit with the Web View trying to play it as an HTML5 stream, but have had limited success so far :

    - Direct playing of the stream works with Icecast in MP3 format, although not very well (tends to get long to get started, and is not automatic). Kinda works with Icecast AAC+ too but even less stable (sometimes won't start at all)
    - Direct playing of a Shoutcast stream doesn't work (probably because of the ICY 200 OK instead of HTTP/1.0 200)

    - Using an HTML5/JS player such as JPlayer, Shoutcast MP3 seems to be working perfectly, but Shoutcast AAC+ doesn't work at all. Couldn't try with Icecast but would guess at least Icecast MP3 works fine. It can't be started automatically either though, but it's less of a problem since the controls can be skinned so it can basically be part of the client's UI, although it won't be Android native unfortunately.

    - There are PHP libs that allow to display Shoutcast/Icecast metadata, but I can't think of a way to display it natively under CF2.5. Anyone got an idea?


    In short: has anyone already toyed with playing Icecast/Shoutcast stream (sound and metadata) and have you come up with an elegant solution?

    Thanks.

    Azraël.

  • You can use both Shoutcast/Icecast streams with Android.

    It has native support for background audio rendering so your app can be in the background and continue playing. It's been a while since I developed the App for a commercial US radio station but I'll take a look at my HDD's tomorrow and review my old sources, see what I can dig up for you.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Yes, I found my sources! I haven't tested them yet, let me recheck them with the latest APIs and SDK.

    Fire me a PM over tomorrow!

    Danny

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Latest news : the Android Video object seems to be working great with mp3 Shoutcast, but stops playing as soon as the app is in the background.
    It's kind of working with AAC+ streams (although with many more bugs), with the same problem of no background playback.

    The Web View object gives very unreliable results and CF's native sound object doesn't work at all. I have no other idea.

  • Trying to bump this topic from the past... in case something has changed either in Fusion or Android APIs. So far, I have not been able to make any progress. Web View isn't suitable for native playing and Android Video doesn't play in background. Using Web View with a JS player such as jPlayer yields the best results (works OK with Shoutcast/MP3 and kinda works with Shoutcast/AAC+ despite lots of buffer issues), but is not a very pleasant solution as it's far from native and I'd rather have an app that isn't just a browser window with an HTML page.
    Using Fusion's native "sound" object doesn't seem to yield any result at all.

    Isn't there some kind of Android equivalent to DirectShow that would allow to play whichever multimedia content Android natively supports?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!