Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11840] iOS: UICompositeLayout - unable to launch movie from contentURL

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-11-21T17:29:09.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios100112, regression
ReporterOlga Romero
AssigneeIngo Muschenetz
Created2012-11-21T00:39:42.000+0000
Updated2014-06-19T12:42:54.000+0000

Description

While testig UICompositeLayout I was not able to launch a movie file. *It is a regression, works in 2.1.4* Test steps: 1. Run the code below:
var win = Ti.UI.currentWindow;
win.backgroundColor = 'white';

var label = Ti.UI.createLabel({
	text: 'Pass if video fills the screen',
	top: 40,
	left: 10,
	height: Ti.UI.SIZE,
	width: Ti.UI.SIZE,
	color: 'black'
});

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

video.add(label);
win.add(video);
video.play();
Note: Please use an attached movie file. Actual result: No movie Expected: A movie should play successfully

Attachments

FileDateSize
movie.mp42012-11-21T00:39:42.000+00002549211

Comments

  1. Vishal Duggal 2012-11-21

    contentUrl removed for 3.0. Use url property instead
  2. Olga Romero 2014-06-17

    closing as invalid per [~vduggal] comments

JSON Source