【发布时间】:2017-03-20 11:50:32
【问题描述】:
我是 Android 开发的新手。我想从 Shoutcast Server 获取元数据,发现 streamscraper 是最容易使用的。但我的问题是,我不知道如何使用它。主页本身仅显示如何使用它:
import java.net.URI;
import java.util.List;
import net.moraleboost.streamscraper.Stream;
import net.moraleboost.streamscraper.Scraper;
import net.moraleboost.streamscraper.scraper.IceCastScraper;
public class Harvester {
public static void main(String[] args) throws Exception {
Scraper scraper = new IceCastScraper();
List streams = scraper.scrape(new URI("http://host:port/"));
for (Stream stream: streams) {
System.out.println("Song Title: " + stream.getCurrentSong());
System.out.println("URI: " + stream.getUri());
}
}
}
在任何地方搜索,没有找到如何使用它的项目示例。我希望你们中的一个可以发布如何使用它的代码,或者为它制作一个教程。
【问题讨论】:
标签: android audio-streaming shoutcast icecast internet-radio