I want to play a 10 seconds long video in BlackBerry. On video playing completion I want go to another screen. For this I want know the current status of player (e.g. playing, stopped, paused etc.).
Here is the code I am using now. Need help on this issue.
InputStream is = getClass().getResourceAsStream("/video/battery_tip.mp4");
player = Manager.createPlayer(is, "video/mp4");
player.prefetch();
player.realize();
VideoControl vc = (VideoControl) player.getControl("VideoControl");
Field fld = (Field) vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
vc.setDisplayFullScreen(true);
vc.setVisible(true);
add(fld);
player.start();