问题描述
我是一个iPhone / Android开发者,现在试图在黑莓手中。
I am a iphone/android developer, and now trying hands on Blackberry.
需要在黑莓手机流媒体广播地址的指导。
Need guidance in streaming radio url in blackberry.
需要一些资源,链接发挥电台黑莓流。
need some resources , links to play radio streaming in blackberry.
鸭preciate它。
Appreciate it.
推荐答案
我认为该链接会帮助你,有一个样品zip文件还
http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255
I think the link will help you,there is a sample zip file alsohttp://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255
如果你得到一个网址就可以直接给链接直接Player对象,黑莓支持几乎所有类型的媒体文件。
And if you get a url you can directly give the url to Player object,Blackberry support almost all type of media files.
私人无效invokeMediaPlayer(字符串URL){
private void invokeMediaPlayer(String url){
try {
player = javax.microedition.media.Manager.createPlayer(url);
player.realize();
volume = (VolumeControl)player.getControl("VolumeControl");
volume.setLevel(40);
player.prefetch();
player.start();
player.addPlayerListener(this);
/* metaDataTrimmed = inner.getMetaData1();
System.out.println(metaDataTrimmed);*/
} catch (IOException e) {
e.printStackTrace();
} catch (MediaException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
这篇关于流媒体广播电台在黑莓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!