{ "id": "162506", "key": "TIMOB-23796", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-08-21T22:39:54.000+0000", "created": "2016-08-10T10:50:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "mediasession" ], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-22T07:17:56.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 controlling the AudioPlayer from Notification it makes sense to use the NotificationCompat.MediaStyle. This need a reference to MediaPlayer (aka MediaSession)\r\n\r\nHere an example code for it:\r\n\r\n{code:java}\r\nNotification noti = new NotificationCompat.Builder()\r\n .setSmallIcon(R.drawable.ic_stat_player)\r\n .setContentTitle(\"Track title\")\r\n .setContentText(\"Artist - Album\")\r\n .setLargeIcon(albumArtBitmap))\r\n .setStyle(new NotificationCompat.MediaStyle()\r\n .setMediaSession(mySession))\r\n .build();\r\n )\r\n{code}\r\n\r\n```\r\nIs it possible to add a method `getMediaSessionId()` to AudioPlayer? Or is it the same as audioSessionId?\r\n\r\nCode Strong!\r\n\r\nRainer", "attachment": [], "flagged": false, "summary": "TiMediaAudioPlayer colaborates with MediaSession ", "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, "comment": { "comments": [ { "id": "392846", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you provide a sample test case so we can test the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-08-10T14:57:31.000+0000", "updated": "2016-08-10T14:57:31.000+0000" }, { "id": "392876", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is a feature-request to incorporate with his native module. Please do a core-contribution to get this integrated, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-10T17:42:58.000+0000", "updated": "2016-08-10T17:42:58.000+0000" }, { "id": "393722", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "After some quick investigations and [this page|http://www.codota.com/android/scenarios/52fcbcdada0a1f9f8d94c0b5/android.media.MediaPlayer?tag=dragonfly], I found out that it is just an alias for the already existing method that is exposed as {{¢getAudioSessionId|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.AudioPlayer-method-getAudioSessionId]}} as you already suggested. Closing.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-21T22:39:48.000+0000", "updated": "2016-08-21T22:39:48.000+0000" }, { "id": "393756", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Hans, if AudoSession same as MediaSession, then the ticket is closed. In my thought AudioSession = binding to PCM data and MediaSession is for binding to controlling. I have no tested if it the same, sorry.", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-22T07:17:56.000+0000", "updated": "2016-08-22T07:17:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }