{ "id": "81816", "key": "TIMOB-6747", "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": "2012-02-10T00:16:54.000+0000", "created": "2011-10-21T10:24:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:16:59.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": "h3. Description\r\nWorked in previous SDKs, but now if you put a YouTube webview in a tableview row then click to start the video, then rotate the device the video stops & closes. This same behavior works fine if the webview is added directly to the window (like the KitchenSink).\r\n\r\nh3. Q&A Question\r\n[Community Q&A question|http://developer.appcelerator.com/question/127163/ios-youtube-in-tableview-row-orientation-change-stops-video]\r\n\r\nh3. Usecase\r\n[Usecase Example|https://gist.github.com/1304527]\r\n\r\n_Included below for convenience_\r\n\r\nNote: Must run on device to see YouTube\r\n{code:title=app.js|borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar testTableView = true;\r\nvar youTubeID = 'GJ98Oezr_l4';\r\n\r\nvar win = Ti.UI.createWindow({\r\n title: 'Window',\r\n backgroundColor: '#fff',\r\n orientationModes: [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nif (Ti.Platform.model == 'Simulator') {\r\n win.add(Ti.UI.createLabel({\r\n text: 'Must run on device\\nto see YouTube',\r\n font: {\r\n fontSize: 20,\r\n fontFamily: 'Helvetica Neue'\r\n },\r\n textAlign: 'center',\r\n width: 'auto'\r\n }));\r\n}\r\nelse {\r\n var videoHtml = '';\r\n videoHtml += '
';\r\n videoHtml += '