Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11384] iOS: Media - Video is not playing

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-10-11T18:17:16.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios100112, regression
ReporterOlga Romero
AssigneeIngo Muschenetz
Created2012-10-11T16:50:28.000+0000
Updated2014-06-19T12:43:12.000+0000

Description

Description: While testing Status Bar in Media module, I noticed that Video is not playing. *It is a regression, works fine in 2.1.3* Test steps: 1. Run the attached code:
var win = Ti.UI.createWindow({
  backgroundColor:'#fff',
  top: 0,
  left: 0,
  width: '100%',
  height: '100%',
  zIndex: 10,
});
 
var bTSOStream = Ti.UI.createButton({
    width: 150,
    height: 30,
    color: 'blue',
    title: 'Live-Stream',
    font: {fontSize:14,fontFamily:'Helvetica Neue'},
    left: 0,
    top: 0,
});
bTSOStream.addEventListener('click', function(e){
    var wStream = Ti.UI.createWindow({
        fullscreen: true,
        orientationModes: [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.LANDSCAPE_LEFT],
        backgroundColor: '#000',
    });
    wStream.open();
     
    var vpStream = Ti.Media.createVideoPlayer({
        contentURL: 'http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov',
        backgroundColor: '#111',
        movieControlMode: Titanium.Media.VIDEO_CONTROL_DEFAULT,
        //scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL ,
        scalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
        fullscreen: true,
    });
    var ignoreFullscreenEvent = false;
    vpStream.addEventListener('naturalSizeAvailable', function(e){
        ignoreFullscreenEvent = true;
    });
    vpStream.addEventListener('fullscreen', function(e){
        if(!ignoreFullscreenEvent){
            wStream.close();
        }
        ignoreFullscreenEvent = false;
    });
    wStream.add(vpStream);
     
     
});
win.add(bTSOStream);
 
win.open();
Actual result: Video is not playing. Console returns: [WARN] Titanium.Media.VideoPlayer.movieControlMode DEPRECATED in 1.8.0, in favor of Ti.Media.VideoPlayer.mediaControlStyle. Expected result: Video should play

Comments

  1. Vishal Duggal 2012-10-11

    contentUrl is removed. Use url
  2. Olga Romero 2014-06-17

    closing as invalid

JSON Source