0

我在不支持 RTSP 流的设备上流式传输视频时遇到问题,所以我必须使用其他任何东西。请向我建议任何与此相关的好方法。

HttpConnection connection;
connection = (HttpConnection) Connector.open("http://myurl/video.3gp?streamable=true", Connector.READ_WRITE);
InputStream is = ((HttpConnection) connection).openInputStream();

player = Manager.createPlayer(is ,"video/3gpp");
//or below line in both cases it throw OutOfMemory error 
//player = Manager.createPlayer("myurl/video.3gp?streamable=true");

player.addPlayerListener(this);
player.realize();
player.prefetch();
player.start();

Progressive-Download= true在 jad 文件中添加并在诺基亚 X3 上进行了测试。它抛出 OutOfMemory 错误。

4

0 回答 0