Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9424] Android: VideoPlayer - Video controls are not attached to video if scalingMode is set to Titanium.Media.VIDEO_SCALING_ASPECT_FIT

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2020-01-09T22:11:51.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterWilson Luu
AssigneeUnknown
Created2012-06-06T13:47:42.000+0000
Updated2020-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

FileDateSize
android.jpg2012-06-06T13:47:42.000+000030401
ios.jpg2012-06-06T13:47:42.000+000055639
movie.mp42012-06-06T13:47:42.000+00002549211

Comments

  1. jithinpv 2013-03-19

    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
  2. Biju pm 2013-12-02

    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

JSON Source