{ "id": "172499", "key": "TIMOB-26490", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-11-02T10:05:08.000+0000", "created": "2018-10-26T15:32:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-05T13:31:39.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hello,\r\n\r\nWKWebView does not stop playing videos on iPad on latest SDK. Although its stop playing the video on iPhone. We have tested this issue on the following environment:\r\n\r\nAppcelerator Command-Line Interface, version 7.0.6\r\nSDK: 7.4.1.GA\r\nDevices: iPhone 5s(12.0.1), and iPad Simulator\r\nTi.WKWebView module version: 2.8.3 from [here|https://github.com/appcelerator-modules/Ti.WKWebView/releases]\r\n\r\n*Steps to reproduce the issue:*\r\n1) add the attached app.js code into your project \r\n2) Run it on iOS 12.0 iPad device \r\n3) Click on \"click to open videos\" button \r\n4) Play the video, once the video is started playing, click on the back button or goto the background by clicking on Home button \r\n5) Video is playing even after closing the window \r\n\r\n*Test Code:*\r\napp.js file\r\n{code}\r\nvar mainWin = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle : 'click to open videos',\r\n\tcolor : 'white',\r\n\tbackgroundColor : 'black',\r\n\twidth : \"50%\",\r\n\theight : '20%'\r\n});\r\nmainWin.add(btn);\r\nbtn.addEventListener('click', function() {\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'white'\r\n\t});\r\n\tvar backBtn = Ti.UI.createButton({\r\n\t\ttitle : 'Back',\r\n\t\tcolor : 'white',\r\n\t\tbackgroundColor : 'black',\r\n\t\ttop : 10\r\n\t});\r\n\tbackBtn.addEventListener('click', function() {\r\n\t\twin.close();\r\n\t});\r\n\tvar WK = require('ti.wkwebview');\r\n\tvar webview = WK.createWebView({\r\n\t\turl : 'https://vimeo.com/album/5202279',\r\n\t\ttop : 50\r\n\t});\r\n\twin.add(backBtn);\r\n\twin.add(webview);\r\n\twin.open();\r\n});\r\nmainWin.open(); \r\n{code}\r\n\r\nThanks", "attachment": [ { "id": "65797", "filename": "ScreenRecording_11-01-2018_1-04-04_PM.MP4", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-11-01T09:35:14.000+0000", "size": 8196282, "mimeType": "video/mp4" } ], "flagged": false, "summary": "iOS: WKWebView does not stop playing videos on iPad ", "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": "WKWebView, iOS", "comment": { "comments": [ { "id": "443018", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "While running the video if I press home button it is stopping video in iPhone and iPad both.\r\n\r\nThe problem is happening only when I am clicking back button. In this case it is not stopping video.\r\nIt looks the problem is from native WKWebview. I'll look in this.\r\n\r\nWith Ti.UI.WebView, this problem is not there.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-29T05:39:02.000+0000", "updated": "2018-10-30T07:45:34.000+0000" }, { "id": "443126", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nOk. Thanks for your update.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-10-31T10:27:34.000+0000", "updated": "2018-10-31T10:27:34.000+0000" }, { "id": "443173", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator-modules/Ti.WKWebView/pull/25", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-01T09:43:07.000+0000", "updated": "2018-11-01T09:43:07.000+0000" }, { "id": "443174", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~vijaysingh].", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-11-01T09:43:11.000+0000", "updated": "2018-11-01T09:43:11.000+0000" }, { "id": "443226", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~vijaysingh] approved your PR and merged it. Ready to be released.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-11-02T10:07:04.000+0000", "updated": "2018-11-02T10:07:04.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }