{ "id": "63697", "key": "TIMOB-3065", "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": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-14T04:55:43.000+0000", "created": "2011-04-15T03:35:51.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_orientation", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T04:55:43.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Problem reported here: http://developer.appcelerator.com/helpdesk/view/70751

\r\n

Orientation events aren't getting picked up when a video player\r\nis playing.

\r\n

Code to reproduce:

\r\n
\r\nvar win = Ti.UI.currentWindow;\r\n \r\nwin.orientationModes = \r\n[\r\n    Ti.UI.PORTRAIT,\r\n    Ti.UI.UPSIDE_PORTRAIT, \r\n    Ti.UI.LANDSCAPE_LEFT,\r\n    Ti.UI.LANDSCAPE_RIGHT\r\n];\r\n \r\nvar activeMovie = Titanium.Media.createVideoPlayer({\r\n    url: 'http://195.238.27.196/VOD/android/0006676NLP00.3gp'\r\n});\r\nactiveMovie.play();\r\n \r\nTi.Gesture.addEventListener('orientationchange', function(e) {       \r\n    Ti.API.info('Orientation changed: ' + e.orientation);\r\n});\r\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Orientation events not firing with an open video player", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "194896", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Original video doesn't work, so I used the following code: \r\n\r\n{code}\r\nvar vidWin = Titanium.UI.createWindow({\r\n title : 'Video View Demo',\r\n backgroundColor : '#fff'\r\n});\r\n\r\nvidWin.orientationModes = \r\n[\r\n Ti.UI.PORTRAIT,\r\n Ti.UI.LANDSCAPE_LEFT,\r\n Ti.UI.LANDSCAPE_RIGHT\r\n];\r\n \r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n top : 2,\r\n autoplay : true,\r\n backgroundColor : 'blue',\r\n height : 300,\r\n width : 300,\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\n \r\nvideoPlayer.url = 'http://dl.dropbox.com/u/11919792/VID_20120501_141527.mp4';\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n\r\nTi.Gesture.addEventListener('orientationchange', function(e) { \r\n Ti.API.info('Orientation changed: ' + e.orientation);\r\n});\r\n\r\nvidWin.open();\r\n{code}\r\n\r\nTested using 2.0.1GA2 on a Samsung Galaxy S2. Unable to reproduce the issue. I can see the events being fired on ddms. Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-15T14:27:05.000+0000", "updated": "2012-05-15T14:27:05.000+0000" }, { "id": "214283", "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-08-14T04:54:28.000+0000", "updated": "2012-08-14T04:54:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }