{ "id": "159766", "key": "TIMOB-23258", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-06T17:36:45.000+0000", "created": "2016-04-21T16:37:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-26T22:28:28.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": "Hi,\r\n\r\nfor using of 'Ti.AudioVisualizerView' we need the audioSessionId from Mediaplayer instance.\r\n\r\nIt is a read only property and we need only this method 'getAudioSessionId()'.\r\n\r\nCode strong!\r\n\r\n ", "attachment": [], "flagged": false, "summary": "Android: Ti.Media.AudioPlayer: Support \"audioSessionId\"", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 627, "state": "closed", "name": "2016 Sprint 10 SDK", "startDate": "2016-05-07T00:43:56.954Z", "endDate": "2016-05-21T00:43:00.000Z", "completeDate": "2016-05-23T02:06:04.349Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "383553", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nThanks for submitting the feature request. Shouldn't it be \"Ti.Media.getAudioSessionId()\" instead of \"Ti.Media.AudioPlayer.getAudioSessionId()\"? Our engineers will look into it. Moving the ticket. \r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-21T16:54:36.000+0000", "updated": "2016-04-21T16:54:36.000+0000" }, { "id": "383749", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~sdarda] No, the property (and its generated read-only getter) should be part of the (existing) [Ti.Media.AudioPlayer|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.AudioPlayer] proxy.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-24T23:18:23.000+0000", "updated": "2016-04-24T23:18:23.000+0000" }, { "id": "384158", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Hans. Exactly. It is a simple getter. With this ID the user can use postprocesses like visualizer or equalizer.", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-28T06:49:41.000+0000", "updated": "2016-04-28T06:49:41.000+0000" }, { "id": "384205", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "\r\nI don't know how PR (what I have to fork?)\r\n\r\nHere the diffs:\r\n\r\n{code:java}\r\n// …/media/TiSound.java#191\r\npublic int getAudioSessionId() {\r\n\tif (mp != null) {\r\n\t\treturn mp.getAudioSessionId();\r\n\t}\r\n\treturn 0;\r\n}\r\n{code}\r\n\r\nand in AudioPlayerProxy\r\n{code:java}\r\n // …/media/AudioPlayerProxy.java#172:\r\n@Kroll.method\r\npublic int getAudioSessionId() {\r\n\tTiSound s = getSound();\r\n\tif (s != null) {\r\n\t\treturn s.audioSessioniD();\r\n\t}\r\n\treturn 0;\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-28T15:06:42.000+0000", "updated": "2016-04-28T15:12:02.000+0000" }, { "id": "384918", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~titanium@webmasterei-hamburg.de] Hello, thanks you for the contribution and I apologies for the delay on the ticket. I've pushed these changes as a community PR, one of our android developers will review the commits and merge them. As for what to fork if you look at the SDK [repo|https://github.com/appcelerator/titanium_mobile] there is instructions on how to contribute, long story short you just need to fork the repo ,add a remote to the appcelerator repo, then push your changes to your repo and create a pull-request to the appcelerator repo. Looking forward to your future contributions! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-05T22:20:32.000+0000", "updated": "2016-05-05T22:20:32.000+0000" }, { "id": "384942", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR from [~apetkov] https://github.com/appcelerator/titanium_mobile/pull/7989", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-05-06T01:44:30.000+0000", "updated": "2016-05-06T01:44:30.000+0000" }, { "id": "384952", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~apetkov] I have reviewed it, please take a look at my comments in the PR. Thank you.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-05-06T02:12:55.000+0000", "updated": "2016-05-06T02:13:06.000+0000" }, { "id": "386961", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{audioSessionId}} is now supported by {{Ti.Media.AudioPlayer}}. We get a audioSessionId when the audio Player is playing audio.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.6.0.201605180604\r\nTi SDK : 5.4.0.v20160526011354\r\nTi CLI : 5.0.8\r\nAlloy : 1.8.7\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.5-5\r\nAppc CLI : 5.3.0-47\r\nNode: 4.2.2\r\nNexus 6 - Android 6.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-26T22:28:13.000+0000", "updated": "2016-05-26T22:28:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }