[TIMOB-3066] Android: Orientation change on paused video causes video to play
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-05-22T21:03:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Rick Blalock |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:35:52.000+0000 |
Updated | 2017-03-09T23:28:43.000+0000 |
Description
While checking in with another issue I noticed that a paused video in a video player will resume / play on an orientation change. It should probably stay paused unless the user indicates otherwise.
Code sample:
var win = Ti.UI.currentWindow;
win.orientationModes =
[
Ti.UI.PORTRAIT,
Ti.UI.UPSIDE_PORTRAIT,
Ti.UI.LANDSCAPE_LEFT,
Ti.UI.LANDSCAPE_RIGHT
];
var activeMovie = Titanium.Media.createVideoPlayer({
url: 'http://195.238.27.196/VOD/android/0006676NLP00.3gp'
});
activeMovie.play();
Ti.Gesture.addEventListener('orientationchange', function(e) {
Ti.API.info('Orientation changed: ' + e.orientation);
});
Code doesn't seem to run on 2.0.1GA2 using a Samsung Galaxy S2 (2.3.6). Ticket closed.
Closing ticket as invalid.