{ "id": "85399", "key": "TIMOB-7365", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-06T10:38:21.000+0000", "created": "2012-01-24T16:25:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_media", "parity", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:06:49.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": "Both getUrl, setUrl work on iOS, but only setUrl works on Android. I believe this is just a typo,\r\nnote missing @Kroll.method annotation:\r\n\r\n\r\n @Kroll.getProperty\r\n public String getUrl() {\r\n return TiConvert.toString(getProperty(TiC.PROPERTY_URL));\r\n }\r\n \r\n @Kroll.setProperty @Kroll.method\r\n public void setUrl(String url) {\r\n if (url != null) {\r\n setProperty(TiC.PROPERTY_URL, resolveUrl(null, TiConvert.toString(url)));\r\n }\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.Media.AudioPlayer.getUrl not exposed as method", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "189003", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please note that this issue is called out specifically in the APIDocs, AudioPlayer.yml, so when you fix this, please REMOVE the method doc for \"getUrl\" and \"setUrl\". \r\n\r\nThese methods are only in the doc because the getUrl platforms: field doesn't match the one for the \"url\" property. With this anomaly removed, docgen can autogenerate the accessors for the property.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:53:27.000+0000", "updated": "2012-03-28T09:53:27.000+0000" }, { "id": "190143", "author": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To verify fix, run this code\r\n{code}\r\nvar audioPlayer = Ti.Media.createAudioPlayer({ \r\n url: 'www.example.com/podcast.mp3',\r\n allowBackground: true\r\n});\r\n\r\nTi.API.info('audioPlayer.getUrl() = '+audioPlayer.getUrl());\r\n{code}\r\n\r\nThe Console should show something to the effect of\r\n{code}\r\nI/TiAPI ( 373): audioPlayer.getUrl() = file:///android_asset/Resources/www.example.com/podcast.mp3\r\n\r\n{code}", "updateAuthor": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-06T05:49:55.000+0000", "updated": "2012-04-06T05:50:32.000+0000" }, { "id": "199012", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.1.0.v20120618102300 on Droid\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T16:44:08.000+0000", "updated": "2012-06-18T16:44:08.000+0000" }, { "id": "240916", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be a regression in SDK 3.02 - I'm getting this on Android 4.04\r\n\r\nUncaught TypeError: Object# has no method 'getURL'\r\n", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T08:31:53.000+0000", "updated": "2013-03-06T08:31:53.000+0000" }, { "id": "240993", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Joe - Do you have a test case to reproduce this issue?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T19:36:58.000+0000", "updated": "2013-03-06T19:36:58.000+0000" }, { "id": "240995", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Joe,\n\nNote capitalization. The Ti method is \"getUrl\", not \"getURL\". ", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T19:43:09.000+0000", "updated": "2013-03-06T19:43:09.000+0000" }, { "id": "241121", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry, I stand corrected. It was confusing that it worked under iOS but not under Android.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T11:11:07.000+0000", "updated": "2013-03-07T11:11:07.000+0000" }, { "id": "241233", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That is confusing. Looking at the code, it appears that the way iOS maps getters & setters to properties ignores case. (so getUrL would probably work, too). This seems like a bug to me. I'll open a ticket.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T22:45:09.000+0000", "updated": "2013-03-07T22:45:09.000+0000" }, { "id": "283474", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:06:49.000+0000", "updated": "2013-12-10T06:06:49.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }