{ "id": "101739", "key": "TIMOB-13327", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2012-09-22T15:00:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "27263", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "60488", "key": "TIMOB-4238", "fields": { "summary": "aacp radio stream", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:21.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "*Problem description*\r\nCreating a radio stream with the AAC+ format does not work.\r\n\r\n*iOS behavior*\r\nOn launch nothing plays and alert dialog appears with \"File Error - Unable to configure network read stream.\"\r\n\r\n*Android behavior*\r\nNothing happens on launch, sometimes crashes.\r\n\r\n*Note*\r\nMP3 streams work fine on both Android and iOS, the following URL works: http://icecast.omroep.nl/radio1-sb-mp3\r\n\r\n*Test case*\r\n{code:javascript}\r\n// AAC stream URL\r\nvar s = \"http://184.164.135.245:8026/\";\r\n\r\nvar sound = Ti.Media.createAudioPlayer({\r\n\turl : s,\r\n\tpreload : true,\r\n\tallowBackground : true\r\n});\r\n\r\nsound.format = Titanium.Media.AUDIO_FORMAT_AAC;\r\nsound.addEventListener('error', function(e) {\r\n\tif (e.message == \"Unknown media error\") {\r\n\t\talert(\"No\");\r\n\t}\r\n});\r\n\r\nsound.addEventListener('complete', function() {\r\n\t// your code here\r\n});\r\n\r\nsound.addEventListener('interrupted', function() {\r\n\t// your code here\r\n});\r\n\r\nsound.addEventListener('resume', function() {\r\n\t// your code here\r\n});\r\n\r\nsound.addEventListener('progress', function(e) {\r\n\t// your code here\r\n});\r\n\r\nsound.start();\r\n{code}\r\n\r\n*Logs*\r\n{code}\r\n[INFO][TiAPI ( 320)] State: starting (4)\r\n[INFO][TiAPI ( 320)] State: stopped (5)\r\n[INFO][StagefrightPlayer( 34)] setDataSource('http://184.164.135.242:9990/')\r\n[ERROR][MediaPlayer( 320)] error (1, -2147483648)\r\n[WARN][TiSound ( 320)] (KrollRuntimeThread) [23253,370368] Issue while initializing :\r\n[WARN][TiSound ( 320)] java.io.IOException: Prepare failed.: status=0x1\r\n[WARN][TiSound ( 320)] at android.media.MediaPlayer.prepare(Native Method)\r\n[WARN][TiSound ( 320)] at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119)\r\n[WARN][TiSound ( 320)] at ti.modules.titanium.media.TiSound.play(TiSound.java:178)\r\n[WARN][TiSound ( 320)] at ti.modules.titanium.media.AudioPlayerProxy.play(AudioPlayerProxy.java:127)\r\n[WARN][TiSound ( 320)] at ti.modules.titanium.media.AudioPlayerProxy.start(AudioPlayerProxy.java:120)\r\n[WARN][TiSound ( 320)] at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[WARN][TiSound ( 320)] at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)\r\n[WARN][TiSound ( 320)] at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:636)\r\n[WARN][TiSound ( 320)] at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:831)\r\n[WARN][TiSound ( 320)] at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307)\r\n[WARN][TiSound ( 320)] at android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN][TiSound ( 320)] at android.os.Looper.loop(Looper.java:123)\r\n[WARN][TiSound ( 320)] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)\r\n[INFO][TiAPI ( 320)] State: starting (4)\r\n[INFO][TiAPI ( 320)] State: stopped (5)\r\n[INFO][StagefrightPlayer( 34)] setDataSource('http://184.164.135.242:9990/')\r\n[ERROR][MediaPlayer( 320)] error (1, -2147483648)\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: AAC stream shoutcast not working", "creator": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti Studio & SDK 3.0.2 GA", "comment": { "comments": [ { "id": "220427", "author": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "body": "i read in q&a that titanium proxies media modules are outdated and thats why we cant reproduce aac+ shoutcast live stream? is true? if you need more information i can provide it to you thanks very much", "updateAuthor": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-24T18:52:10.000+0000", "updated": "2012-09-24T18:52:10.000+0000" }, { "id": "220428", "author": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "body": "if i setup and stream url shoutcast mp3 it works but not with aacp stream stype", "updateAuthor": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-24T18:53:06.000+0000", "updated": "2012-09-24T18:53:06.000+0000" }, { "id": "220431", "author": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "body": "im keep getting this in logs:\n\n{quote}\n[INFO][TiAPI ( 320)] State: starting (4)\n[INFO][TiAPI ( 320)] State: stopped (5)\n[INFO][StagefrightPlayer( 34)] setDataSource('http://184.164.135.242:9990/')\n[ERROR][MediaPlayer( 320)] error (1, -2147483648)\n[WARN][TiSound ( 320)] (KrollRuntimeThread) [23253,370368] Issue while initializing : \n[WARN][TiSound ( 320)] java.io.IOException: Prepare failed.: status=0x1\n[WARN][TiSound ( 320)] \tat android.media.MediaPlayer.prepare(Native Method)\n[WARN][TiSound ( 320)] \tat ti.modules.titanium.media.TiSound.initialize(TiSound.java:119)\n[WARN][TiSound ( 320)] \tat ti.modules.titanium.media.TiSound.play(TiSound.java:178)\n[WARN][TiSound ( 320)] \tat ti.modules.titanium.media.AudioPlayerProxy.play(AudioPlayerProxy.java:127)\n[WARN][TiSound ( 320)] \tat ti.modules.titanium.media.AudioPlayerProxy.start(AudioPlayerProxy.java:120)\n[WARN][TiSound ( 320)] \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\n[WARN][TiSound ( 320)] \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)\n[WARN][TiSound ( 320)] \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:636)\n[WARN][TiSound ( 320)] \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:831)\n[WARN][TiSound ( 320)] \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307)\n[WARN][TiSound ( 320)] \tat android.os.Handler.dispatchMessage(Handler.java:95)\n[WARN][TiSound ( 320)] \tat android.os.Looper.loop(Looper.java:123)\n[WARN][TiSound ( 320)] \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)\n[INFO][TiAPI ( 320)] State: starting (4)\n[INFO][TiAPI ( 320)] State: stopped (5)\n[INFO][StagefrightPlayer( 34)] setDataSource('http://184.164.135.242:9990/')\n[ERROR][MediaPlayer( 320)] error (1, -2147483648)\n{quote}", "updateAuthor": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-24T19:10:30.000+0000", "updated": "2012-09-24T19:10:30.000+0000" }, { "id": "245240", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Alexis,\r\n\r\nOur apologies for taking a while.\r\n\r\nI noticed that the URL in this sample is down - do you have a new URL that we could try?\r\n\r\nCould you also confirm whether this works on iOS? Then we can know if it's a parity issue.\r\n\r\nI removed sound.isMediaTypeSupported() from your test case because it was causing an undefined error.\r\n\r\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T19:59:31.000+0000", "updated": "2013-04-02T19:59:31.000+0000" }, { "id": "245243", "author": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "body": "Sure, http://184.164.135.245:8026/ new url, i dont know i just test it using android :)", "updateAuthor": { "name": "alexistkd", "key": "alexistkd", "displayName": "Alexis Gaitan", "active": true, "timeZone": "America/Chicago" }, "created": "2013-04-02T20:02:50.000+0000", "updated": "2013-04-02T20:02:50.000+0000" }, { "id": "245311", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Android and iOS with SDK 3.0.2 GA on iOS 6 simulator and Samsung Galaxy S2 2.3.6. Updated description.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T23:03:14.000+0000", "updated": "2013-04-02T23:03:14.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }