02-08-2012 02:58 PM - last edited on 02-08-2012 02:59 PM
I have tried everything to make this work. Even the example given by RIM doesn't work. It causes the app to freeze on the splash screen.
I'm using OS 2.0 on the PlayBook
The strange thing is that it freezes only when you declare your variable.
ie/ If I declare my variables
var myVD:VideoDisplay;
var myPlayer:MediaPlayer;
This causes the app to freeze at the startup screen.
If I remove those variables... it doesnt freeze... but obviously wont do anytinng else.
Here is my code..
--
import qnx.events.MediaPlayerEvent;
import qnx.media.MediaPlayer;
import qnx.media.VideoDisplay;
import qnx.ui.events.MediaControlEvent;
import qnx.ui.media.*;
var myVD:VideoDisplay;
var myPlayer:MediaPlayer;
function loadQNXVideo():void{
isVideo = "yes";
myVD = new VideoDisplay(false);
myVD.setPosition(1024/2 - 800/2, 600/2 - 480/2);
myVD.setSize(800, 480);
myVD.backgroundColor = 0x000000;
addChild(myVD);
myPlayer = new MediaPlayer();
//_myPlayer.addEventListener(MediaPlayerEvent.INFO
myPlayer.url = "/filename.mp4";
myPlayer.videoDisplay = myVD;
playerControls.visible = true;
//webView2.addEventListener(Event.COMPLETE,handleL
}
02-13-2012 09:25 AM
Anyone ?
02-13-2012 10:59 AM
02-13-2012 03:52 PM
This isnt in an external .as file. It's in the Flash IDE so variables arent Public and Private.
02-13-2012 04:24 PM
Well, sounds like some sort of verification error, you include the clas, run the app... AIR can not find the class, BOOM blows up.
Are you not getting any debug error's?
02-14-2012 12:12 AM