{ "id": "63698", "key": "TIMOB-3066", "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": "2012-05-22T21:03:19.000+0000", "created": "2011-04-15T03:35:52.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:28: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}
While checking in with another issue I noticed that a paused\r\nvideo in a video player will resume / play on an orientation\r\nchange. It should probably stay paused unless the user indicates\r\notherwise.
\r\nCode sample:
\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