Playing an InputStream video in Blackberry JDE

最后都变了- 提交于 2019-12-01 07:38:29

So, after a very long time I have determined that the Blackberry Bold 9000 does NOT do http streaming. I ended up having to (or rather a coworker of mine having to) write custom methods for progressive download to simulate it. Oh, well.

You should be able to stream actually. Firstly, you must make sure you are appending the correct connection parameters to your URL (ie. ";interface=wifi" for a wifi connection). Secondly, you have to make sure the file you are streaming is not too large. If it is too large, you will get an HTTP error stating "file too large". In order to fix this, you need to buffer things (Check out the DataSource APIs). You should limit what you request to about 1-2MB. After you have pulled that "chunk" you need to keep requesting sequential chunks (with separate http connections) to continue to fill you buffer. I hope this helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!