Project: titanium
Issue TIMOB-20140: Streaming Audio not working on Android Marshmallow
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* {code:javascript} AudioPlayer = Ti.Media.createAudioPlayer({ allowBackground: true }); AudioPlayer.setUrl( 'http://icecast.omroep.nl/3fm-bb-mp3' ); AudioPlayer.start(); {code} *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!
Story points: 5