[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 Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-09-06T21:20:40.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | 2013 Sprint 18, 2013 Sprint 18 API |
Components | iOS |
Labels | api, qe-ios060112, supportTeam |
Reporter | Anshu Mittal |
Assignee | Sabil Rahim |
Created | 2012-06-21T03:40:24.000+0000 |
Updated | 2017-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();
Same issue different environment
See JS workaround in TIMOB-14938
Closing ticket as Won't Fix with reference to the above comments.