{ "id": "86303", "key": "TIMOB-7607", "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": [ { "id": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-06T04:45:56.000+0000", "created": "2012-02-09T17:25:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-06T17:11:26.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": "h5. Expected\r\n\r\nWhen the video is closed in landscape/portrait mode, Status bar should be visible.\r\n\r\nh5. Actual\r\n\r\nCurrently its not visible.\r\n\r\nBelow is attached the sample app.js, and screen shots to explain the issue.\r\n\r\nh5. Test Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n top: 0,\r\n left: 0,\r\n width: '100%',\r\n height: '100%',\r\n zIndex: 10,\r\n});\r\n\r\nvar bTSOStream = Ti.UI.createButton({\r\n\twidth: 150,\r\n\theight: 30,\r\n\tcolor: 'blue',\r\n\ttitle: 'Live-Stream',\r\n\tfont: {fontSize:14,fontFamily:'Helvetica Neue'},\r\n\tleft: 0,\r\n\ttop: 0,\r\n});\r\nbTSOStream.addEventListener('click', function(e){\r\n\tvar wStream = Ti.UI.createWindow({\r\n\t\tfullscreen: true,\r\n\t\torientationModes: [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.LANDSCAPE_LEFT],\r\n\t\tbackgroundColor: '#000',\r\n\t});\r\n\twStream.open();\r\n\t\r\n\tvar vpStream = Ti.Media.createVideoPlayer({\r\n\t\tcontentURL: 'http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov',\r\n\t\tbackgroundColor: '#111',\r\n\t \tmovieControlMode: Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n\t\t//scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL ,\r\n\t\tscalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\n\t\tfullscreen: true,\r\n\t});\r\n\tvar ignoreFullscreenEvent = false;\r\n\tvpStream.addEventListener('naturalSizeAvailable', function(e){\r\n\t\tignoreFullscreenEvent = true;\r\n\t});\r\n\tvpStream.addEventListener('fullscreen', function(e){\r\n\t\tif(!ignoreFullscreenEvent){\r\n\t\t\twStream.close();\r\n\t\t}\r\n\t\tignoreFullscreenEvent = false;\r\n\t});\r\n\twStream.add(vpStream);\r\n\t\r\n\t\r\n});\r\nwin.add(bTSOStream);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "25713", "filename": "app (1).js", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T17:25:32.000+0000", "size": 1107, "mimeType": "text/javascript" }, { "id": "25714", "filename": "Screen Shot 2012-02-09 at 5.24.26 PM.png", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T17:25:32.000+0000", "size": 92775, "mimeType": "image/png" }, { "id": "25715", "filename": "Screen Shot 2012-02-09 at 5.24.42 PM.png", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T17:25:32.000+0000", "size": 182902, "mimeType": "image/png" }, { "id": "25716", "filename": "Screen Shot 2012-02-09 at 5.24.57 PM.png", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T17:25:32.000+0000", "size": 90630, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Status Bar disappears when video is closed in landscape/portrait mode", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 1.8.01, OS:iOS5", "comment": { "comments": [ { "id": "185206", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem here is that both Titanium Window and VideoPlayer are trying to control status bar visibility.\r\nIn general, if the VideoPlayer is in fullscreen mode, no need to set its parent Window to fullscreen too.\r\nPossible solutions:\r\n\r\n1. Remove fullscreen mode from parent window.\r\n{code}\r\n\tvar wStream = Ti.UI.createWindow({\r\n\t\tfullscreen: false,\r\n\t\torientationModes: [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.LANDSCAPE_LEFT],\r\n\t\tbackgroundColor: '#000',\r\n\t});\r\n{code}\r\n2. Hide VideoPlayer before closing a Window.\r\n{code}\r\n\tvpStream.addEventListener('fullscreen', function(e){\r\n\t\tif(vpStream.getPlaybackState() == 2){\r\n\t\t\tvpStream.hide();\r\n\t\t\tvpStream.release();\r\n\t\t\twStream.close();\r\n\t\t}\r\n\t});\r\n{code}", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-06T12:04:06.000+0000", "updated": "2012-03-06T12:20:16.000+0000" }, { "id": "186726", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315140247\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T16:19:21.000+0000", "updated": "2012-03-15T16:19:21.000+0000" }, { "id": "189123", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix labels", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T08:13:26.000+0000", "updated": "2012-03-29T08:13:26.000+0000" }, { "id": "201779", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-06T04:45:16.000+0000", "updated": "2012-07-06T04:45:16.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }