{ "id": "111419", "key": "AC-1803", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-20T14:58:04.000+0000", "created": "2013-03-19T19:37:02.000+0000", "labels": [ "android", "audioPlayerAPIs" ], "versions": [], "issuelinks": [ { "id": "34608", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64639", "key": "TIMOB-3632", "fields": { "summary": "Android - AudioPlayer doesnt work on 2.1", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Nothing fancy - just passing an URL to createAudioPlayer - this has worked on all of our devices from Android 2.2 thru Android 3 to Android 4.0x.\r\n\r\nOn Android 4.1+ the player (apparently) times out after trying to connect for something like a minute. These URLs also fail when used with the built-in MP3 and Audio players on Android 4.1+\r\n\r\nThe URLs we're using are from Live365 - \r\nhttp://www.live365.com/play/372628\r\nhttp://www.live365.com/play/372475\r\n\t\r\nsound = Ti.Media.createAudioPlayer({\r\n\turl : url,\r\n\tallowBackground : true\r\n});", "attachment": [], "flagged": false, "summary": "Android 4.1: Can not play audio stream ", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.1 and above; Ti SDK 3.02 and 3.1 as of 3/19", "comment": { "comments": [ { "id": "243033", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Joe, would you mind providing a simple test case that shows this behavior? Just something that is able to be copied and pasted into an app.js and shows the bug. Once I can reproduce and confirm, I will move to engineering for them to look at.\n\nThank you,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T21:28:06.000+0000", "updated": "2013-03-19T21:28:06.000+0000" }, { "id": "243149", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nTested on Nexus 4, with Android 4.2.2:\r\n\r\n{code}\r\nvar url = 'http://www.live365.com/play/372628';\r\n\r\nvar sound = Ti.Media.createAudioPlayer({ url : url, allowBackground : true });\r\nsound.start();\r\n{code}\r\n\r\nI can hear the sound just fine. Let me know if your code is any different.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-20T14:58:04.000+0000", "updated": "2013-03-20T14:58:04.000+0000" }, { "id": "247253", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There was a difference - I had a preload : true property which I commented out - otherwise my code is the same as in Cassenti's post.\n\nAnd when I tried to run, it did the same thing as before - spun the activity indicator for about 30 seconds and then completely blew up...\n\nThis is on Android 4.1.1 on a Samsung Galaxy Tab connected via WiFi\n\n{noformat}\n04-12 01:35:22.656: W/TiSound(3068): (KrollRuntimeThread) [48631,69475] Issue while initializing : \n04-12 01:35:22.656: W/TiSound(3068): java.io.IOException: Prepare failed.: status=0x1\n04-12 01:35:22.656: W/TiSound(3068): \tat android.media.MediaPlayer.prepare(Native Method)\n04-12 01:35:22.656: W/TiSound(3068): \tat ti.modules.titanium.media.TiSound.initialize(TiSound.java:124)\n04-12 01:35:22.656: W/TiSound(3068): \tat ti.modules.titanium.media.TiSound.play(TiSound.java:181)\n04-12 01:35:22.656: W/TiSound(3068): \tat ti.modules.titanium.media.AudioPlayerProxy.play(AudioPlayerProxy.java:124)\n04-12 01:35:22.656: W/TiSound(3068): \tat ti.modules.titanium.media.AudioPlayerProxy.start(AudioPlayerProxy.java:117)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:58)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:694)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:918)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:310)\n04-12 01:35:22.656: W/TiSound(3068): \tat ti.modules.titanium.ui.TableViewProxy.handleMessage(TableViewProxy.java:861)\n04-12 01:35:22.656: W/TiSound(3068): \tat android.os.Handler.dispatchMessage(Handler.java:95)\n04-12 01:35:22.656: W/TiSound(3068): \tat android.os.Looper.loop(Looper.java:137)\n04-12 01:35:22.656: W/TiSound(3068): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\n{noformat}", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T08:45:38.000+0000", "updated": "2013-04-12T08:45:38.000+0000" }, { "id": "247254", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T08:50:07.000+0000", "updated": "2013-04-12T08:50:07.000+0000" }, { "id": "288779", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI tested this issue with the tested code below. I can’t reproduce this issue in latest Ti SDK and android. It’s working fine as we expected. Please check this code in latest Ti SDK and let us know if you have any problem persist. \r\n\r\nh5. Test Environment\r\nMac OS X 10.8.5\r\nTi SDK 3.2.0.GA\r\nTi CLI 3.2.0\r\nAndroid Device 2.3.3 and 4.2.2 \r\n\r\nh4. Test Code \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'pink',\r\n});\r\n \r\nvar url = 'http://www.live365.com/play/372628';\r\n \r\nvar sound = Ti.Media.createAudioPlayer({ url : url, allowBackground : true ,preload : true });\r\nsound.start();\r\nwin.open();\r\n{code} \r\n\r\n\r\nh4. Step for Test \r\n\r\n# Create a simple test project \r\n# Update app.js file to test code \r\n# Run on android device \r\n# Audio will play automatically \r\n\r\n\r\nh5. Actual Result: \r\nAudio will play with sound \r\n\r\nh5. Expected result: \r\nAudio will play with sound \r\n\r\nThanks \r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T05:24:00.000+0000", "updated": "2014-01-20T05:27:44.000+0000" }, { "id": "288780", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since the issue is not reproducible with 3.2GA. ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T05:28:26.000+0000", "updated": "2014-01-20T05:28:26.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }