{ "id": "122462", "key": "TIMOB-15823", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-11-26T17:46:48.000+0000", "created": "2013-11-14T15:11:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T17:38:56.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": "h4. Problem Description\r\nCreate an iPad SplitView.\r\nListen to the 'visible' event on the SplitView, to handle the leftNavButton (TiUIiPadSplitWindowButton)\r\nAdd a video in the detailView.\r\n\r\nNow open the app in portrait mode (button appears)\r\n\r\nOpen the video in full screen.\r\nChange orientation to landscape\r\nButton is still there - 'visible' event didn't fire.\r\n\r\nChange orientation to portrait then back to landscape\r\nButton is now gone - 'visible' event fired.\r\n\r\nOpen the video in full screen.\r\nChange orientation to portrait\r\nButton is not there - 'visible' event didn't fire.\r\n\r\n\r\nI'm trying to find a workaround but I can only get to the TiUIiPadSplitWindowButton via the SplitView 'visible' event (e.button).\r\n\r\nh4. Steps to reproduce \r\n1.\tCreate a new project\r\n2.\tPaste test case in app.js\r\n3.\tChange orientation to landscape -'visible' event will fired\r\n4.\tChange orientation to portrait - 'visible' event will fired\r\n5.\tNow change this video in fullscreen mode \r\n6.\tChange orientation to landscape -'visible' event will not fired\r\n7.\tChange orientation to portrait - 'visible' event will not fired\r\n\r\nh4. Test case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff',\r\n});\r\n \r\nvar nav = Ti.UI.iPhone.createNavigationGroup({\r\n window : win\r\n});\r\n \r\nvar master = Ti.UI.createWindow({\r\n backgroundColor : '#fff',\r\n});\r\n \r\nvar masterView = Ti.UI.iPhone.createNavigationGroup({\r\n window : master\r\n});\r\n \r\nvar splitwin = Ti.UI.iPad.createSplitWindow({\r\n detailView : nav,\r\n masterView : masterView\r\n});\r\n \r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n backgroundColor : 'blue',\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_EMBEDDED,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FILL,\r\n fullscreen : false,\r\n autoplay : false\r\n});\r\n \r\nvideoPlayer.url = 'etc/movie.mp4';\r\nwin.add(videoPlayer);\r\n \r\nsplitwin.addEventListener('visible', function(e) {\r\n if (e.view == 'detail') {\r\n e.button.title = \"Master\";\r\n win.leftNavButton = e.button;\r\n } else if (e.view == 'master') {\r\n win.leftNavButton = null;\r\n }\r\n alert('event fired');\r\n});\r\n \r\nsplitwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS7: orientation change when video fullscreen doesn't fire SplitView 'visible' event", "creator": { "name": "oshevans", "key": "oshevans", "displayName": "Osian Evans", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "oshevans", "key": "oshevans", "displayName": "Osian Evans", "active": true, "timeZone": "Europe/London" }, "environment": "OS: MAC OS X 10.8.5\r\nTi SDK: 3.1.3 GA \r\nTi CLI: 3.2.0 \r\nIOS simulator 7.0\r\n", "comment": { "comments": [ { "id": "279571", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please attach a sample test case that reproduces the issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-14T18:21:28.000+0000", "updated": "2013-11-14T18:21:28.000+0000" }, { "id": "280490", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello Osian,\r\nplease include a test case so we can move this bug to platform.\r\n\r\nTIA!\r\n\r\nBest,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T02:58:16.000+0000", "updated": "2013-11-21T02:58:16.000+0000" }, { "id": "281440", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "changing orientation when the video is in fullscreen mode will not fire a `visible` event, as at this point the splitwindow not event the top most window. The video player takes over the entire screen. You can only expect to receive the events only when you exit out of the videoplayer fullscreen mode. \n\nMarking ticket as invalid. Tested on iOS 7 sim with SDK 3.2.X using the following code.\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor : '#fff',\n});\n \nvar nav = Ti.UI.iOS.createNavigationWindow({\n window : win\n});\n \nvar master = Ti.UI.createWindow({\n backgroundColor : '#fff',\n});\n \nvar masterView = Ti.UI.iOS.createNavigationWindow({\n window : master\n});\n \nvar splitwin = Ti.UI.iPad.createSplitWindow({\n detailView : nav,\n masterView : masterView\n});\n \nvar videoPlayer = Titanium.Media.createVideoPlayer({\n backgroundColor : 'blue',\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_EMBEDDED,\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FILL,\n fullscreen : false,\n autoplay : false\n});\n \nvideoPlayer.url = 'etc/movie.mp4';\nwin.add(videoPlayer);\n \nsplitwin.addEventListener('visible', function(e) {\n if (e.view == 'detail') {\n e.button.title = \"Master\";\n win.leftNavButton = e.button;\n } else if (e.view == 'master') {\n win.leftNavButton = null;\n }\n alert('event fired');\n});\n \nsplitwin.open();\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T17:46:39.000+0000", "updated": "2013-11-26T17:46:39.000+0000" }, { "id": "415570", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T17:38:56.000+0000", "updated": "2017-03-24T17:38:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }