{ "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\n

Code 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
{html}", "attachment": [], "flagged": false, "summary": "Android: Orientation change on paused video causes video to play", "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": "194779", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Code doesn't seem to run on 2.0.1GA2 using a Samsung Galaxy S2 (2.3.6). Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-14T16:53:55.000+0000", "updated": "2012-05-14T16:53:55.000+0000" }, { "id": "411030", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:28:43.000+0000", "updated": "2017-03-09T23:28:43.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }