{ "id": "91637", "key": "TIMOB-9065", "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": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-05T23:23:16.000+0000", "created": "2012-05-08T23:57:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "api", "kitchensink", "module_media", "qe-3.2.0", "qe-testadded", "regression" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [ { "id": "33502", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "102587", "key": "TIMOB-13150", "fields": { "summary": "Android: AudioPlayer.start() freezes UI thread", "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": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-19T01:29:02.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Remote URL does not play.\r\nSteps To Reproduce:\r\n1. LG-P970 > Kitchensink > Phone> Sound> RemoteURL\r\n2. Press Play\r\n\r\nActual:\r\n05-09 06:43:26.673: V/MediaPlayerService(1627): [68] notify (0x920d8, 100, 1, -2112880640)\r\n05-09 06:43:26.680: E/MediaPlayer(11860): error (1, -2112880640)\r\n05-09 06:43:26.680: W/TiSound(11860): (KrollRuntimeThread) [2746,8112398] Issue while initializing : \r\n05-09 06:43:26.680: W/TiSound(11860): java.io.IOException: Prepare failed.: status=0x1\r\n05-09 06:43:26.680: W/TiSound(11860): \tat android.media.MediaPlayer.prepare(Native Method)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat ti.modules.titanium.media.TiSound.initialize(TiSound.java:119)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat ti.modules.titanium.media.TiSound.play(TiSound.java:178)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:135)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:494)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:675)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:398)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat android.os.Looper.loop(Looper.java:123)\r\n05-09 06:43:26.680: W/TiSound(11860): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104)\r\n05-09 06:43:26.680: V/MediaPlayerService(1627): disconnect(68) from pid 11860\r\n\r\nExpected:\r\nFile should play successfully\r\n\r\nNote: Also occured in 1.8.2\r\n", "attachment": [], "flagged": false, "summary": "Android: Sound - Remote URL does not play", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK-2.0.2.v20120505151714\r\nTested with Titanium Studio:2.0.2.201205041518\r\nPlatform & version: Android v 2.2\r\nDevice Details: LG-p970(Android v 2.2)\r\nHost Operating System: OSX 10.7.3", "comment": { "comments": [ { "id": "194488", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@amittal - This ticket mentions Android in the subject but the component is marked as KitchenSink. Is this a platform issue or KitchenSink issue? Did you run the same test with iOS platform? We need to file these tickets with better information.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T23:36:51.000+0000", "updated": "2012-05-10T23:36:51.000+0000" }, { "id": "195249", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is the platform issue and the problem occurs only for the device LG-P970(v 2.2). It works fine for iOS devices and following Android devices:\r\n1. Samsung galaxy tab(v 3.2)\r\n2. Samsung galaxy nexus (4.0.2)\r\n3. Samsung Galaxy note(2.3.6)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T03:07:47.000+0000", "updated": "2012-05-18T03:07:47.000+0000" }, { "id": "195373", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@anshu - if it is a platform issue then why the component was set as KitchenSink? ", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-19T09:40:29.000+0000", "updated": "2012-05-19T09:40:29.000+0000" }, { "id": "242865", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "device specific\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T07:10:36.000+0000", "updated": "2013-03-19T07:10:36.000+0000" }, { "id": "282367", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is reproducible using following environment.\nKitchensink: Phone-> Sound ->Remote url then click play\nIt works fine on SDK: 3.1.3.GA\n\nTested on:\nDevice : Google Nexus 7, Android Version: 4.3\nSDK: 3.2.0.v20131203104847\nCLI version : 3.2.0-beta\nOS : MAC OSX 10.9\nAlloy: 1.3.0-beta\nACS: 1.0.9\nAppcelerator Studio, build: 3.2.0.201311272052\ntitanium-code-processor: 1.1.0-beta\nXCode : 5.0.2\n\nExpected:\nSound should play\n\nActual:\nSound does not play", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-04T11:53:10.000+0000", "updated": "2013-12-04T11:53:10.000+0000" }, { "id": "282496", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The regression is caused by [PR#4593|https://github.com/appcelerator/titanium_mobile/pull/4593].", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T22:39:18.000+0000", "updated": "2013-12-04T22:39:18.000+0000" }, { "id": "282551", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5060\r\nFor FR:\r\n1. Run the KS->Phone-> Sound ->Remote url. Play with all the buttons. The sound should play/pause/stop/reset without any problem.\r\n2. Run the below test case. The log should show\r\n{code}\r\nI/TiAPI (25912): ****************** Before initialized: sound.getDuration() = 0\r\n{code}\r\nThen click the button and the log should show\r\n{code}\r\nI/TiAPI (25912): ****************** After initialized: sound.getDuration() = 7863\r\n{code}\r\n\r\nAnother test case:\r\n{code}\r\nvar win=Ti.UI.createWindow({\r\n\tbackgroundColor: \"white\"\r\n});\r\n\r\nvar url = \"http://www.archive.org/download/CelebrationWav/1.wav\";\r\n\r\nvar sound = Titanium.Media.createSound();\r\nsound.url = url;\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: \"play sound\"\r\n});\r\n\r\nbutton.addEventListener(\"click\", function(){\r\n\tsound.play();\r\n});\r\n\r\nsound.addEventListener(\"change\", function(e){\r\n\tif (e.state == sound.STATE_INITIALIZED) {\r\n\t\tTi.API.info(\"****************** After initialized: sound.getDuration() = \" + sound.getDuration());\r\n\t}\r\n});\r\n\r\nTi.API.info(\"****************** Before initialized: sound.getDuration() = \" + sound.getDuration());\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T01:55:24.000+0000", "updated": "2013-12-05T22:49:28.000+0000" }, { "id": "282735", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.2.X PR: https://github.com/appcelerator/titanium_mobile/pull/5071", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T22:48:10.000+0000", "updated": "2013-12-05T22:48:10.000+0000" }, { "id": "283759", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Remote Url does play the sound.\r\nTested both the above app and KitchenSink.\r\n\r\nVerified fix on:\r\nDevice : Google Nexus 4, Android Version: 4.0.4,\r\nSDK: 3.2.0.v20131210191510\r\nCLI version : 3.2.0-cr\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.0-cr\r\nACS: 1.0.10\r\nAppcelerator Studio, build: 3.2.0.201312101708\r\ntitanium-code-processor: 1.1.0-cr\r\nXCode : 5.0.2", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-11T06:41:15.000+0000", "updated": "2013-12-11T06:41:15.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }