com.supernovapps.audio:jstreamsourcerer

Java sourcer library for Icecast, Shoutcast v1/v2 streaming servers.

Лицензия

Лицензия

Группа

Группа

com.supernovapps.audio
Идентификатор

Идентификатор

jstreamsourcerer
Последняя версия

Последняя версия

0.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.supernovapps.audio:jstreamsourcerer
Java sourcer library for Icecast, Shoutcast v1/v2 streaming servers.
Ссылка на сайт

Ссылка на сайт

https://github.com/safchain/jstreamsourcer
Система контроля версий

Система контроля версий

https://github.com/safchain/jstreamsourcer/releases/tag/v0.1.3

Скачать jstreamsourcerer

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.supernovapps.audio/jstreamsourcerer/ -->
<dependency>
    <groupId>com.supernovapps.audio</groupId>
    <artifactId>jstreamsourcerer</artifactId>
    <version>0.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.supernovapps.audio/jstreamsourcerer/
implementation 'com.supernovapps.audio:jstreamsourcerer:0.1.3'
// https://jarcasting.com/artifacts/com.supernovapps.audio/jstreamsourcerer/
implementation ("com.supernovapps.audio:jstreamsourcerer:0.1.3")
'com.supernovapps.audio:jstreamsourcerer:jar:0.1.3'
<dependency org="com.supernovapps.audio" name="jstreamsourcerer" rev="0.1.3">
  <artifact name="jstreamsourcerer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.supernovapps.audio', module='jstreamsourcerer', version='0.1.3')
)
libraryDependencies += "com.supernovapps.audio" % "jstreamsourcerer" % "0.1.3"
[com.supernovapps.audio/jstreamsourcerer "0.1.3"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.apache.directory.studio : org.apache.commons.codec jar 1.8
org.apache.httpcomponents : httpclient jar 4.3.4
org.apache.httpcomponents : httpcore jar 4.3.2

test (2)

Идентификатор библиотеки Тип Версия
org.easymock : easymock jar 3.2
junit : junit jar 4.8.1

Модули Проекта

Данный проект не имеет модулей.

Build Status Coverage Status

jstreamsourcer

Java sourcer library for Icecast, Shoutcast v1/v2 streaming servers.

Install

Maven

<dependencies>
    <dependency>
        <groupId>com.supernovapps.audio</groupId>
        <artifactId>jstreamsourcerer</artifactId>
        <version>0.1.3</version>
    </dependency>
</dependencies>

Examples

Icecast

import com.supernovapps.audio.jstreamsourcer.Icecast;

icecast icecast = new Icecast(320, 5000);
icecast.setHost("localhost");
icecast.setUsername("source");
icecast.setPassword("password");
icecast.setPath("/live");
icecast.setPort(8000);
icecast.start();

byte[] buffer = new byte[4096];

FileInputStream inputStream = new FileInputStream("test.mp3");
icecast.updateMetadata("song", "artist", "album");

while (inputStream.read(buffer) != -1) {
  icecast.write(buffer, nRead);
}
inputStream.close();

Shoutcast v1

import com.supernovapps.audio.jstreamsourcer.ShoutcastV1;

shoutcastV1 shoutcast = new ShoutcastV1(128, 5000);
shoutcast.setHost("localhost");
shoutcast.setPassword("password");
shoutcast.setPort(8001);
shoutcast.setTimeout(30);
shoutcast.start();

byte[] buffer = new byte[4096];

FileInputStream inputStream = new FileInputStream("test.mp3");
shoutcast.updateMetadata("song", "artist", "album");

while (inputStream.read(buffer) != -1) {
  shoutcast.write(buffer, nRead);
}
inputStream.close();

Shoutcast v2

import com.supernovapps.audio.jstreamsourcer.ShoutcastV2;

shoutcastV2 shoutcast = new ShoutcastV2(320, 1000);
shoutcast.setHost("localhost");
shoutcast.setSid("1");
shoutcast.setUid("1");
shoutcast.setPassword("password");
shoutcast.setPort(8000);
shoutcast.setTimeout(30);
shoutcast.start();

byte[] buffer = new byte[4096];

FileInputStream inputStream = new FileInputStream("test.mp3");
shoutcast.updateMetadata("song", "artist", "album");

while (inputStream.read(buffer) != -1) {
  shoutcast.write(buffer, nRead);
}
inputStream.close();

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Версии библиотеки

Версия
0.1.3