在j2me设备中实时视频流

时间:2012-05-07 07:04:54

标签: java-me video-streaming

我在不支持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();

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

0 个答案:

没有答案