黑莓无线应用流式音频 [英] Blackberry radio app streaming audio

查看:305
本文介绍了黑莓无线应用流式音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建设BB 5.我有一个.PLS网址,让我找到我的网址打流的无线应用。我的问题是。我需要建立一个缓冲区,因为这是下载的文件是太大inmediatly发挥它玩这个流,但我不知道如何建立这个缓冲区。任何想法?
我认为,它必须是类似的东西。

I am building a radio app in BB 5. I have a .pls url where I find my urls to play the stream. My issue is. I need to build a Buffer to play this stream because the file which is downloaded is too big to play it inmediatly, but I don't know how to build this buffer. Any idea? I think that it must be something similar to that

<一个href=\"http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255\"相对=nofollow>流媒体BB

但我想要的东西更简单,只有播放和停止广播流。

But I want something more simple, only play and stop the radio streaming.

推荐答案

好,我解决了这个,使用从上面的链接中提到的code流的包。我从小链接添加 CircularByteBuffer ,显示出文章。有一个在straming包中的类,它需要一些修正(从 CircularByteBuffer一些 BufferOverflowException 和大小调整方法)。现在我的计划是工作!太棒了!

Ok I've solved this, using the package of streaming from the code mentioned in the link above. I've added the CircularByteBuffer from the small link, showed in article. There is a class in the straming package which needs some fixes (in some BufferOverflowException and the resize method from CircularByteBuffer). And now my project is working! Great!

添加

的修复是在 StreamingPlayer 类,有一个方法的调用一些的int参数调整。在 CircularByteBuffer code,方法是调整(),因此不需要INT的参数,它双打缓冲capicity。所以我改变这一号召,使用调整大小(),而不INT参数。
另一个补丁是关于 BufferOverflowException 。在code这个对象有一个字符串,但它给出了一个错误。我删除字符串

The fixes were in the StreamingPlayer class, there is a call to method resize with some int parameter. In the CircularByteBuffer code, the method is resize(), so doesn't need int parameters, it doubles the buffer capicity. So I change that call, using the resize() without int parameters. The other fix is about BufferOverflowException. In the code this object has a String, but it gives an error. I delete this Strings.

这篇关于黑莓无线应用流式音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆