Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3066] Android: Orientation change on paused video causes video to play

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2012-05-22T21:03:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterRick Blalock
AssigneeNeeraj Gupta
Created2011-04-15T03:35:52.000+0000
Updated2017-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);
});

Comments

  1. Junaid Younus 2012-05-14

    Code doesn't seem to run on 2.0.1GA2 using a Samsung Galaxy S2 (2.3.6). Ticket closed.
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source