{ "id": "174079", "key": "TIMOB-27366", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-09-25T17:28:58.000+0000", "created": "2019-08-29T19:00:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-09-26T18:13: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hello,\r\n\r\nVideo player is not getting closed in iOS version 10.x.x and below but on iOS version 12 or above it's working fine. \r\n\r\n*Test Environment:*\r\nAppcelerator Command-Line Interface, version 7.1.0\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.14.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.1.0.GA\r\niOS device: iPhone 6plus(12.4), iPod 5G(9.3.3), iPhone OS 10.3.3\r\n\r\n*Test code:*\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'red'\r\n\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n\tcolor : 'blue',\r\n\ttext : 'Play Video',\r\n\twidth : 300,\r\n\theight : 200\r\n});\r\nlabel2.addEventListener('click', function(e) {\r\n\t//alert('hi')\r\n\trequire('playvid').playvideo();\r\n});\r\nwin.add(label2);\r\nwin.open();\r\n{code}\r\nplayvid.js\r\n{code}\r\nexports.playvideo = function() {\r\n\tvar url = \"https://storage.googleapis.com/onfvideo/Dialogue%202019/2%20compress%2006-04-2019/012%20S%20Shantakumari/Intro%20Dr%20S%20Shanthakumari.mp4\";\r\n\tvar vidWin = Titanium.UI.createWindow({\r\n\t\ttitle : 'Video View Demo',\r\n\t\tbackgroundColor : '#000000',\r\n\t\t//\ttop : (require('main').checkiPhoneX) ? '40dp' : require('main').isiOS7Plus() ? '20dp' : '0dp',\r\n\t\torientationModes : [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT]\r\n\t});\r\n\r\n\tvidWin.open();\r\n\r\n\tvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n\t\t//top : (require('main').checkiPhoneX) ? '45dp' : require('main').isiOS7Plus() ? '32dp' : '0dp',\r\n\t\t//bottom : (require('main').checkiPhoneX) ? '32dp' : '0dp',\r\n\t\turl : url,\r\n\t\tautoplay : true,\r\n\t\tfullscreen : true,\r\n\t\tbackgroundColor : '#000000',\r\n\t\theight : Ti.UI.FILL,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\t//initialPlaybackTime : timemili,\r\n\t\tmediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n\t\tscalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT\r\n\t});\r\n\tvideoPlayer.addEventListener('complete', function(e) {\r\n\t\tif (vidWin !== null) {\r\n\t\t\tvidWin.close();\r\n\t\t\tvidWin = null;\r\n\t\t}\r\n\t});\r\n\tvidWin.add(videoPlayer);\r\n};\r\n{code}\r\n\r\n*Steps to reproduce the issue:*\r\n1. Run the project on iOS 10.x.x enable device\r\n2. Click on the red window video play button.\r\n3. Opened the video player window and it's paying the video\r\n4. Make it full Screen and wait until complete the video\r\n5. It's not returning to the Red window on iOS 10.x.x device(Check Screenshot).\r\n\r\nBut it's working fine on iOS 12 or above device.\r\n\r\nThanks", "attachment": [ { "id": "66900", "filename": "iPod 5G.PNG", "author": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-29T18:59:42.000+0000", "size": 19796, "mimeType": "image/png" }, { "id": "66901", "filename": "iPod Device.mp4", "author": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-30T05:32:43.000+0000", "size": 3948519, "mimeType": "video/mp4" }, { "id": "66903", "filename": "onference.mp4", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-08-30T11:32:06.000+0000", "size": 540687, "mimeType": "video/mp4" } ], "flagged": false, "summary": "iOS: Video player not getting closed in iOS version 10.x.x and below", "creator": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "video player", "closedSprints": [ { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450972", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fhaque] Can we get some more information as to iPhone model? I am unable to reproduce with 8.1.0.GA SDK on a iOS 10.3 device (iPhone 5) or in the emulator iPhone 6, 6Plus, etc.. running 10.3 . Full screen video returns to red screen upon completion.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.14.5\r\n Architecture = 64bit\r\n # CPUs = 12\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.1.0.GA\r\n\r\n", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-29T21:45:00.000+0000", "updated": "2019-08-29T21:45:47.000+0000" }, { "id": "451642", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce, however, the workaround provided by Vijay was confirmed by the user to work for them.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-26T18:13:49.000+0000", "updated": "2019-09-26T18:13:49.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }