{ "id": "173559", "key": "TIMOB-27057", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-04-30T12:35:13.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-21T16:54:09.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When loading a second video player, after releasing a previous one, keepScreenOn is not working unless you set repeatMode to Ti.Media.VIDEO_REPEAT_MODE_ONE. If you set it to NONE or don't set it at all, the screen will lock.\r\n\r\nReproduce with the code below, set the device auto lock to 15seconds and run the following code. Shortly after the 2nd video starts playing, the screen will auto lock. This used to work fine in previous SDK versions.\r\n\r\n{code:java}\r\nvar activeVideo = Ti.Media.createVideoPlayer({\r\n url:\r\n \"http://mirrors.standaloneinstaller.com/video-sample/Panasonic_HDC_TM_700_P_50i.mp4\",\r\n backgroundColor: \"black\",\r\n mediaControlStyle: Ti.Media.VIDEO_CONTROL_HIDDEN,\r\n scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FILL,\r\n fullscreen: true,\r\n autoplay: true,\r\n keepScreenOn: true\r\n});\r\n\r\nsetTimeout(function() {\r\n //Wait 30seconds, screen will still be on then release and load another video\r\n console.log(\"New video\");\r\n activeVideo.hide();\r\n activeVideo.release();\r\n activeVideo = null;\r\n activeVideo = Ti.Media.createVideoPlayer({\r\n url:\r\n \"https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4\",\r\n backgroundColor: \"black\",\r\n mediaControlStyle: Ti.Media.VIDEO_CONTROL_HIDDEN,\r\n scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FILL,\r\n fullscreen: true,\r\n autoplay: true,\r\n keepScreenOn: true\r\n });\r\n}, 30000);\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: createVideoPlayer keepScreenOn not working properly", "creator": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "comment": { "comments": [ { "id": "448072", "author": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also seeing this happen with the repeat mode set. Something very inconsistent going on with keepScreenOn!", "updateAuthor": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-30T13:36:35.000+0000", "updated": "2019-04-30T13:36:35.000+0000" }, { "id": "448167", "author": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed to be an issue on: \r\n8.0.0.GA\r\n8.0.1.v20190430172038\r\n8.1.0.v20190426222341\r\n\r\nTip to reproduce, download those MP4 files and bring them locally into the app. It will happen with them remote, but seems harder to reproduce due to the buffering, think it's perhaps a timing issue on the 2nd player creation. Happens every time when the files are local. ", "updateAuthor": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-03T10:32:38.000+0000", "updated": "2019-05-03T10:32:38.000+0000" }, { "id": "448458", "author": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates on this issue?", "updateAuthor": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-17T00:55:31.000+0000", "updated": "2019-05-17T00:55:31.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }