Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20140

Streaming Audio not working on Android Marshmallow

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.4.0
    • Component/s: Android
    • Environment:

      Original:

      • Titanium 3.5.1. GA
      • Android 6 (Marshmallow)

      Updated:

      • Titanium 5.0.1.GA
    • Story Points:
      5
    • Sprint:
      2015 Sprint 25 SDK

      Description

      I'm having an issue with audio streaming on any Android device running the newest Android version (Marshmallow).

      I'm using the following code to play the audio stream (works on iOS, and android prior to Marshmallow);

      Test case

      AudioPlayer = Ti.Media.createAudioPlayer({ allowBackground: true });
      AudioPlayer.setUrl( 'http://icecast.omroep.nl/3fm-bb-mp3' );
      AudioPlayer.start();
      

      Expected Result
      Stream starts playing

      Actual Result
      Stream doesn't start playing, instead i'm getting an error saying “unknown media error”.

      Like I said, this was working on both iOS and Android (prior to Marshmallow).

      Does anyone know a workaround or a fix for this?
      Any help is appreciated!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msamah Ashraf Abu (Inactive)
                Reporter:
                WVersluijs Wouter Versluijs
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20783
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code