Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11376] iOS: Media - Unable to play movie

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-11T20:05:57.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsios, qe-ios100112, regression
ReporterOlga Romero
AssigneeIngo Muschenetz
Created2012-10-11T00:17:02.000+0000
Updated2014-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

FileDateSize
2.1.3.png2012-10-11T00:17:03.000+0000311555
3.0.x.png2012-10-11T00:17:03.000+000048541

Comments

  1. Vishal Duggal 2012-10-11

    Use property url for the videoplyer. contentUrl is gone in 3.0
  2. Olga Romero 2012-10-11

    Changed property, works fine. Closing bug as invalid.

JSON Source