Originally posted by sankt
Nice work Jaromanda!
Did you have to modify the Red5 server much ?
Nice work Jaromanda!
Did you have to modify the Red5 server much ?
It should be available in the trunk very very soon.
NSVConsumer nsv=new NSVConsumer(ServerTypes.MODE_NSV_CLIENT,
new ICYMarshal(room,"streamName")
,"http://localhost:8000/;file.nsv");
nsv.start();
/**
* Act like a shoutcast client.
*/
public static int MODE_SHOUT_CAST_CLIENT=2;
/**
* Act like a shoutcast server for the encoder.
*/
public static int MODE_SHOUT_CAST_SERVER=3;
/**
* Act like a shoutcast client for nsv tv.
*/
public static int MODE_NSV_CLIENT=1;
/**
* Act like a shoutcast server for nsv tv encoder.
*/
public static int MODE_NSV_SERVER=0;
To playback in flash connect the flash player your servercode:
<bean id="shoutcast.stream_1" class="com.thebitstream.shoutcast.StreamConfiguration">
<property name="outputName" value="live" />
<property name="port" value="8001" />
<property name="password" value="changeme" />
</bean>
and after the connection, play the output name.code:
rtmp://localhost/shoutcast
Comment