我用blackberry编写了这段代码,我可以听到黑莓9000中的rtsp音频流,但是当我在服务器日志中看到rtsp流正在传输,并且我可以注意到手机正在获取内容时,我在java 8320上听不到声音。
javax.microedition.media.Player ppp = javax.microedition.media.Manager.createPlayer("rtsp://rtspink;deviceside=true;apn=streamingAPN;");
ppp.addPlayerListener(RadioPlayingScreen.this);
ppp.realize();
VolumeControl vc = (VolumeControl) ppp.getControl("VolumeControl");
if (vc != null) {
vc.setLevel(100);
}
ppp.prefetch();
ppp.start();正如我所说的,这段代码在黑莓9000上运行得很好,但我在黑莓8320上听不到声音。
发布于 2011-04-05 22:02:52
BB9000和BB8320似乎使用不同的协议端口与rtsp服务器通信,而BB8320使用的端口被运营商的防火墙过滤。
https://stackoverflow.com/questions/3573164
复制相似问题