[TIMOB-11376] iOS: Media - Unable to play movie
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-10-11T20:05:57.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | ios, qe-ios100112, regression |
| Reporter | Olga Romero |
| Assignee | Ingo Muschenetz |
| Created | 2012-10-11T00:17:02.000+0000 |
| Updated | 2014-06-19T12:44:03.000+0000 |
Description
Description:
The movie player does not play an .mp4 file.
*It is a regression, does not happen on 2.1.3*
Test steps:
1. Run this code
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
win.add(Ti.UI.createLabel({
text: '1. Let movie play through, then 2. press Play again', textAlign: 'center',
color: '#000',
height: 100, top: 0
}));
var video = Ti.Media.createVideoPlayer({
contentURL: 'movie.mp4',
backgroundColor: '#111',
movieControlMode: Ti.Media.VIDEO_CONTROL_DEFAULT,
top: 100, bottom: 100,
autoplay: true
});
win.add(video);
var stop = Ti.UI.createButton({
title: '3. Press me to try to stop video',
height: 100, bottom: 0
});
stop.addEventListener('click', function (evt) {
video.stop();
});
win.add(stop);
win.open();
Expected result:
A movie.mp4 should play
Actual result:
See screenshots
Attachments
| File | Date | Size |
|---|---|---|
| 2.1.3.png | 2012-10-11T00:17:03.000+0000 | 311555 |
| 3.0.x.png | 2012-10-11T00:17:03.000+0000 | 48541 |
Use property url for the videoplyer. contentUrl is gone in 3.0
Changed property, works fine. Closing bug as invalid.