The video control not properly positioned after changing orientation from Landscape to Portrait.
Not a regression. This issue occurs as far as 1.8.2
The issue does not seem to occur on Android ICS. Tested with Galaxy Nexus (V4.0.2) on which the issue does not occur.
Steps to reproduce:
1. Create an application with code below.
2. Launch the application with device in landscape mode
3. While video is playing, tap on the video to see the video control.
4. While the video control is shown, rotate the device to Portrait orientation
Actual: The video control is shown positioned in the middle of the screen and is truncated from the right. (Refer to attached screenshot)
Expected: The video control should be shown at the bottom of the video
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow();
var options = {
url: 'movie.mp4',
backgroundColor: '#111',
scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL,
movieControlStyle:Titanium.Media.VIDEO_CONTROL_DEFAULT
};
var activeMovie = Titanium.Media.createVideoPlayer(options);
win.add(activeMovie);
activeMovie.play();
win.addEventListener('close', function() {
activeMovie.stop();
});
win.open();
The problem not occure in android 4.0.4 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2
I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131