Problems playing video/mpeg
I am trying to develop a midlet using J2ME MMAPI to display video from a jar file.
InputStream is = getClass().getResourceAsStream("/"+url);
player = Manager.createPlayer(is, "video/mpeg");
The midlet works fine in the emulator java sdk 3.0, but not in the device when I runit from phoneMe Manager. I can´t see the video. I have checked that device supports mpeg/video with Manager.getSupportedContentTypes("file");
I´ve seen that in the device player.getContentType() returns application/octet-stream and not "video/mpeg", so that returns null when I try to create videocontrol: VideoControl video = (VideoControl) player.getControl("javax.microedition.media.control.Vid eoControl");
I thought the device didn´t have the codecs installed. However I can see the video with windows media player and tpcmp player. I have tried to install codecs for wm6 but it doesn´t work.