[TIMOB-9424] Android: VideoPlayer - Video controls are not attached to video if scalingMode is set to Titanium.Media.VIDEO_SCALING_ASPECT_FIT
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2020-01-09T22:11:51.000+0000 |
Affected Version/s | Release 2.0.2, Release 2.1.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity |
Reporter | Wilson Luu |
Assignee | Unknown |
Created | 2012-06-06T13:47:42.000+0000 |
Updated | 2020-01-09T22:11:51.000+0000 |
Description
Steps to reproduce:
1. Copy following code into the default TiMobile project:
var win = Ti.UI.createWindow({
backgroundColor:'white'
})
var videoPlayer = Titanium.Media.createVideoPlayer({
height : 300,
width : 300,
mediaControlStyle : Ti.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
url: 'movie.mp4',
volume: 0.0
});
win.add(videoPlayer);
win.open();
2. Copy movie.mp4 attachment into Resource folder
3. Launch app on Android device
4. Press on the video
Actual: The video controls are detached from the video. See android.jpg
Expected: The video controls should be attached to the video. See ios.jpg
Note:
* This is *not* a regression. This also occurs in 2.0.2.GA
* The above code works as expected on iOS. See ios.png
Attachments
File | Date | Size |
---|---|---|
android.jpg | 2012-06-06T13:47:42.000+0000 | 30401 |
ios.jpg | 2012-06-06T13:47:42.000+0000 | 55639 |
movie.mp4 | 2012-06-06T13:47:42.000+0000 | 2549211 |
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 iOS iPhone Simulator: iOS SDK version: 6.0 jithinpv
The issue cannot reproduce with the release master 3.2.0 Tested with: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK version: 3.2.0 Tested on Device: Samsung galaxy s duos Android version: 4.0.4