{ "id": "160461", "key": "TIMOB-23428", "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-15T08:54:27.000+0000", "created": "2016-05-24T15:06:39.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Ti.Media.Sound", "setUrl" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2017-01-03T22:17:19.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": "Ti.Media.Sound method 'setUrl' is described in latest documentation.\r\n\r\nh3. Steps to reproduce\r\n{code}\r\nvar sound = Ti.Media.createSound({\r\n\turl: '/sounds/sample.mp3'\r\n});\r\n\r\nsound.setUrl('/sounds/sample2.mp3');\r\n\r\nsound.play();\r\n{code}\r\n\r\nh3. Actual Result\r\n[ERROR] : TypeError: Object # has no method 'setUrl'\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n\r\nThanks", "attachment": [], "flagged": false, "summary": "Android: Ti.Media.Sound method 'setUrl' not working", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS,\r\nAndroid,\r\n5.2.2GA", "closedSprints": [ { "id": 784, "state": "closed", "name": "2016 Sprint 26 SDK", "startDate": "2016-12-17T01:24:57.928Z", "endDate": "2016-12-31T01:24:00.000Z", "completeDate": "2017-01-03T02:15:01.548Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "386647", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I was able to reproduce the issue. This is a valid bug in Android. For iOS this is working as expected. \r\n\r\n{code}\r\nvar sound = Ti.Media.createSound({});\r\nsound.setUrl('Sounds.mp3');\r\nsound.play();\r\n{code}\r\n\r\nEnvironment\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.2.GA\r\n Target Platform = android\r\n{code}\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-24T17:17:05.000+0000", "updated": "2016-05-24T17:18:34.000+0000" }, { "id": "403198", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "This issue is still reproducible in SDK 6.0.0.GA. Tested in Android 6.0.1 device.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-12T18:45:22.000+0000", "updated": "2016-12-12T18:45:22.000+0000" }, { "id": "403404", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8690", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2016-12-15T05:12:09.000+0000", "updated": "2016-12-15T05:12:09.000+0000" }, { "id": "404035", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Validated with this environment:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20170103080657\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\nAndroid Device: 6.0.1\r\n\r\nI first reproduced the issue using SDK 6.0.1 GA. The sound file did not play, and errors were printed on the console. I then tried it (on Android Device) with SDK 6.1.0, and was able to play a sound file as expected, and no errors were printed. ", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-03T22:17:06.000+0000", "updated": "2017-01-03T22:17:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }