Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2249] iPad video player will not play after being paused

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-05-11T16:03:56.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-15
ComponentsiOS
Labels3.2, defect, ios, ipad, klist, player, release-1.7.0, video
Reporterctredway
AssigneeReggie Seagraves
Created2011-04-15T03:14:47.000+0000
Updated2011-05-11T16:03:56.000+0000

Description

Problem

When a movie is paused outside the default controls the movie will not play again. Using the default controls still works.

Code

var win = Titanium.UI.createWindow({  
    title:'Win'
});
 
var player = Titanium.Media.createVideoPlayer({
    contentURL:'ACCESSO_ANTERIORE_XVID.mp4',
    scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,
    width:400,
    height:300,
    autoplay:false
});
 
var button = Ti.UI.createButton({
    title:'Toggle',
    height:60,
    bottom:120
});
 
button.addEventListener('click',function()
{   
    if(player.playbackState==Titanium.Media.VIDEO_PLAYBACK_STATE_PLAYING){
        player.pause();
    }
    else{
        player.play(); 
    }
});
 
win.add(player);
win.add(button);
win.open();

HD Ticket

http://developer.appcelerator.com/helpdesk/view/52221#c238621">http://developer.appcelerator.com/helpdesk/view/52221#c238621

Attachments

FileDateSize
app.js2011-04-15T13:48:08.000+0000749

Comments

  1. Dawson Toth 2011-04-15

    Another HD client has noticed this on iPhone as well, and I have reproduced. http://support-admin.appcelerator.com/display/GJW-66323-919
  2. Reggie Seagraves 2011-04-15

    Here's an app.js to validate the fix.
  3. Eric Merriman 2011-05-11

    No longer able to reproduce with iPad, iOS 4.3.2. Build 1.7.0.879871b. Closing

JSON Source