Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iPad Movie won't play: Error in 1.2

Please help!

Here's the code

var win = Titanium.UI.currentWindow;

var activeMovie = Titanium.Media.createVideoPlayer({
    contentURL:'foo.m4v',
    backgroundColor:'#111',
    movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
    scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
});



activeMovie.play();

Here's the error:

2010-04-08 10:41:48.362 moviePlayer[88346:5807] Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0xa50a5b0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded)

— asked April 8th 2010 by Mark Smillie
  • ipad
0 Comments

2 Answers

  • Hi Mark,

    Don't you need to put that player on a container? Like win.add(activeMovie), before playing it?

    Regards,

    Bill

    — answered April 8th 2010 by Bill Dawson
    permalink
    0 Comments
  • FYI, a google search shows that error is fairly prevalent. Some think maybe it's something to do with the movie itself.

    BTW, I tried your code with a movie of mine, and it worked. I can hear the movie through my speakers, but since your code snippet doesn't put the player on a container, I don't see the movie. If I just add win.add(activeMovie) before the call to play(), then I see the movie too.

    — answered April 8th 2010 by Bill Dawson
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.