Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9684] iOS: Video Player - For VIDEO_SCALING_MODE_FILL scaling mode, video does not scale to complete height until the device is rotated.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2013-09-06T21:20:40.000+0000
Affected Version/sRelease 2.1.0
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API
ComponentsiOS
Labelsapi, qe-ios060112, supportTeam
ReporterAnshu Mittal
AssigneeSabil Rahim
Created2012-06-21T03:40:24.000+0000
Updated2017-03-23T22:39:38.000+0000

Description

For VIDEO_SCALING_MODE_FILL scaling mode, video does not scale to complete height until the device is rotated. This is not regression. This issue occurs since 1.8.2 Steps to Reproduce: 1. Create an app using the code below. 2. Launch application and wait till media controls disappear after a few seconds. Actual: The video does not scale the complete height of the screen. You can see the background of the screen on the top. But when you rotate the device, that space is occupied by the playing video. Expected: The video should scale to the complete height when launched. The behavior should be same on device rotation.

Titanium.UI.setBackgroundColor('blue');
var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'red'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var video = Ti.Media.createVideoPlayer({
	contentURL: 'movie.mp4',
	movieControlMode:Titanium.Media.VIDEO_CONTROL_FULLSCREEN,
    scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
});

win1.add(video);
video.play();

var win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2
});


tabGroup.addTab(tab1);  
tabGroup.addTab(tab2);  

tabGroup.open();

Comments

  1. Vishal Duggal 2013-09-06

    Same issue different environment
  2. Vishal Duggal 2013-09-06

    See JS workaround in TIMOB-14938
  3. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source