{ "id": "113864", "key": "TIMOB-16106", "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": null, "resolutiondate": null, "created": "2013-05-06T20:51:40.000+0000", "priority": null, "labels": [ "android", "videoplayer" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:18.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I have to use the VideoPlayer to play music on Android (because I have to retrieve the duration dynamically, etc...).\r\n\r\nThe background mode with a VideoPlayer works great on iOS (with Info.plist), but it doesn't work on Android. How can I do avoid the VideoPlayer stop when I quit the app ?\r\n\r\nI've the lastest Titanium Mobile SDK 3.2.", "attachment": [], "flagged": false, "summary": "Android: Support rendering the Video Player in background mode ", "creator": { "name": "ludooo", "key": "ludooo", "displayName": "Ludovic", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ludooo", "key": "ludooo", "displayName": "Ludovic", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "250634", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you elaborate on the background mode for iOS please? If by that you mean that you have a view visible over the playing video (song in your case), then that is only possible on iOS. From the docs for the android video player: \n\nOn Android, the video player cannot switch modes. To create a fullscreen player, you must specify fullscreen: true when you create the player. This fullscreen player creates its own Android Activity on top of the activity stack. Unlike a normal view, this fullscreen video player appears as soon as it is created. The user can close the player by pressing the Back button. See the code examples for a sample using the fullscreen player on Android.\n\nThe same activity will not be possible on android because of the way the video player is put on top of the activity stack, nothing else is able to be run on top of it while it is playing. \n\nSorry for the inconvenience but this is a limitation on the android OS, not on Titanium. If you have any other questions feel free to ask.\n\nRegards,\nCarter ", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T21:05:26.000+0000", "updated": "2013-05-07T21:05:26.000+0000" }, { "id": "286217", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket as it is a valid enhancement request. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T05:07:15.000+0000", "updated": "2013-12-30T05:07:15.000+0000" }, { "id": "286218", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this enhancement request to engineering for further evaluation and prioritization.\n\nRequirement: Allow audio of a video to be played in the background when the phone is locked. Titanium supports this functionality for iOS platform but not for Android. \n\nHow to enable this functionality in iOS platform: \nJava Script file: Ti.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAYBACK;\ntiapp.xml file:\n\n \n audio\n \n\n\nTi.Media.AUDIO_SESSION_MODE_PLAYBACK is supported only for iOS platform and not for Android so this feature request is essentially to support the same functionality on both platforms.\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media-property-AUDIO_SESSION_MODE_PLAYBACK\n\nThere are a number of Q&A threads on this request:\nhttps://developer.appcelerator.com/question/136155/allowbackground-on-videoplayer-\nhttps://developer.appcelerator.com/question/144456/keep-videoplayer-alive-when-screen-is-off-background-playback-videoplayer\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T05:13:15.000+0000", "updated": "2013-12-30T05:13:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }