English 中文(简体)
媒体外观 利用黑人媒体运动员
原标题:MediaException Using BlackBerry Media Player

我面临通过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();
问题回答

作者的文件:

如果运动员不能获得所需的一切资源,就会屈服于媒体。 发生这种情况时,运动员将无法开始。 然而,如果需要的资源后来可能由另一个行为者或申请方释放,则可能会再次被提用。

你没有具体说明你的URL,我怀疑你正在试图将吉大港山区移入。 在此情况下,您可在以下网站查阅所需信息:http://supportforums.blackberry.com/t5/Java-Development/Playing-Video-in-Your-Application/ta-p/446840?name=videoplayback”rel=“nofollow”>。





相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签