我在 java 中有这个代码,我可以在黑莓 9000 中听到 rtsp 音频流,但是虽然我可以在服务器日志中看到 rtsp 流正在传输,并且我可以注意到手机正在获取内容,但我在 BlackBerry 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 上听不到声音。