我面临通过URL播放录像的问题。 URL没有延伸,而是对3gpp视频的投入流做出反应。 关于预谋的媒体角色,它扔下了例外网。
我无法理解例外的原因,请帮助我。 这是我的法典。
con = HttpRequestHelper.service(url, null);
inputStream = con.openInputStream();
final Player player = javax.microedition.media.Manager.createPlayer(inputStream, "video/3gpp");
player.realize();
player.prefetch();
UiApplication.getUiApplication().invokeLater(new Runnable(){
public void run() {
VideoControl videoControl = (VideoControl)player.getControl("VideoControl");
videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,
"net.rim.device.api.ui.Field");
videoControl.setVisible(true);
}
});
VolumeControl volume = (VolumeControl) player.getControl("VolumeControl");
volume.setLevel(30);
//videoControl.setVisible(true);
player.start();