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)
2 Answers
-
Hi Mark,
Don't you need to put that player on a container? Like win.add(activeMovie), before playing it?
Regards,
Bill
-
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.