简体   繁体   English

如何使用Java连接Icecast服务器

[英]How to connect icecast server using java

I want to start, stop and stream icecast server using java. 我想使用Java启动,停止和流式Icecast服务器。 And Is it possible to integrate icecast server to J2EE web application? 并且可以将icecast服务器集成到J2EE Web应用程序吗?

Check this documentation of JLayer http://www.javazoom.net/javalayer/javalayer.html for playing music but i guess you have to modify it slightly. 检查JLayer的此文档http://www.javazoom.net/javalayer/javalayer.html播放音乐,但我想您必须对其进行一些修改。 Also if you want to stream the radio in your server , this might help you implement Java fm radio also might get you in interest for playing the radio. 另外,如果您想在服务器中流式传输广播,这可能有助于您实现Java fm广播,也可能使您对播放广播感兴趣。

You can use a Java libshout binding, such as this one: https://github.com/OlegKunitsyn/libshout-java (MIT license), to control an Icecast server from a Java application. 您可以使用Java libshout绑定(例如以下代码): https : //github.com/OlegKunitsyn/libshout-java (MIT许可证),以从Java应用程序控制Icecast服务器。

From the Iceast FAQ : 来自Iceast常见问题解答

What is libshout? 什么是libshout?

libshout is a library for communicating with and sending data to an Icecast server. libshout是用于与Icecast服务器进行通信并将数据发送到Icecast服务器的库。 It handles the socket connection, the timing of the data, and prevents bad data from getting to the Icecast server. 它处理套接字连接,数据计时,并防止不良数据到达Icecast服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM