{ "id": "164278", "key": "TIMOB-24082", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-05T18:24:58.000+0000", "created": "2016-10-28T19:40:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-17T18:52:09.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": "Hello,\r\n\r\nTi.Media.soundPlayer is not working on Android KitKat (4.4). The sound is not playing. Although its working fine on android 5.1.1.\r\n\r\n*Testing Environment:*\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 2.15.9\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.5.1.GA\r\n SDK Path = /Users/GSLMAC3/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/mobilesdk/osx/5.5.1.GA\r\nAndroid devices: Samsung Galxy tab 3 v 4.4.2, Samsung Galaxy Grand Prime (5.1.1)\r\n\r\n*Test Code:*\r\napp.js\r\n{code}var win = Titanium.UI.createWindow({ \r\n title:'Audio Test',\r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n\r\n});\r\n\r\nvar audioPlayer = Ti.Media.createSound({\r\n url : 'whatsupdogs.wav',\r\n allowBackground : true\r\n});\r\naudioPlayer.play();\r\nwin.open();{code}\r\n\r\n*Testing Result:*\r\nTi.Media.soundPlayer is not working on Android KitKat (4.4).\r\n\r\n\r\n", "attachment": [ { "id": "60660", "filename": "whatsupdogs.wav", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-11-08T14:55:14.000+0000", "size": 51268, "mimeType": "audio/wav" } ], "flagged": false, "summary": "Ti.Media.soundPlayer is not working on Android KitKat (4.4)", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "closedSprints": [ { "id": 770, "state": "closed", "name": "2016 Sprint 25 SDK", "startDate": "2016-12-03T01:53:07.491Z", "endDate": "2016-12-17T01:53:00.000Z", "completeDate": "2016-12-21T03:19:43.884Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "400472", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce the problem. The WAV file I used played fine on my Android 4.4 emulator.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-07T01:22:18.000+0000", "updated": "2016-11-07T01:22:18.000+0000" }, { "id": "400521", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mrahman] Could you provide the audio file you are attempting to play? I believe it may not be encoded correctly.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-07T19:11:11.000+0000", "updated": "2016-11-07T19:11:11.000+0000" }, { "id": "400937", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8607\r\n\r\n*Test case: (Android 4.4.2) you should not be getting this error in log output:*\r\n{noformat}\r\n(KrollRuntimeThread) [104,104] Error setting file descriptor: \r\n java.io.IOException: setDataSourceFD failed.: status=0x80000000\r\n at android.media.MediaPlayer._setDataSource(Native Method)\r\n at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1277)\r\n at ti.modules.titanium.media.TiSound.initializeAndPlay(TiSound.java:107)\r\n at ti.modules.titanium.media.TiSound.play(TiSound.java:216)\r\n at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:155)\r\n at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:196)\r\n at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:319)\r\n at android.os.Handler.dispatchMessage(Handler.java:98)\r\n at android.os.Looper.loop(Looper.java:146)\r\n at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)\r\n{noformat}\r\n\r\n\r\n{code:JavaScript}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle:'Audio Test',\r\n\tbackgroundColor:'#fff',\r\n\tlayout: 'vertical'\r\n\t\r\n});\r\n\r\nvar audioPlayer = Ti.Media.createSound({\r\n\turl : 'whatsupdogs.wav',\r\n\tallowBackground : true\r\n});\r\naudioPlayer.play();\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-15T00:23:55.000+0000", "updated": "2016-11-15T00:26:09.000+0000" }, { "id": "402568", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8657", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-05T18:24:50.000+0000", "updated": "2016-12-05T18:24:50.000+0000" }, { "id": "404719", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed; the provided sound file is able to be played on 4.4.4 devices and 4.4.2 devices. \r\n*Environement*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nSamsung Galaxy s4 (Android version 4.4.4)\r\nSamsung Galaxy s5 (octa-core) (Android version 4.4.2)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170115172707\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-17T18:51:40.000+0000", "updated": "2017-01-17T18:51:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }