Hi, I'm trying to embed a video in a J2ME application. I'm doing test with SUN's sample video for mobile test-mpeg.mpg. I've been testing playing in my N80, in SUN's emulator and Nokia emulator and doesn't work. Here is some code from my MIDLet:
videoPlayer = Manager.createPlayer( getClass().getResourceAsStream("/com/mypackage/media/testmpeg.3gp"),
VideoControl vc = (VideoControl) getVideoPlayer().getControl("VideoControl");
Display.getDisplay(this).setCurrent( getVideoCanvas() );
//Get a GUI to display the video
Item videoItem = (Item) vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, getVideoCanvas());
Where, getVideoCanvas() return a Canvas. I've test with mpeg, 3gp and mp4 and doesn't work in any case. Am I doing something wrong?