Expand my Community achievements bar.

Audio Streaming with NetStream on LCDS or FDS

Avatar

Level 1
Hi. I can't make audio streaming working on FDS neither on
LCDS. I want to record audio on server.

When trying to :
quote:



new NetStream(this.netConnection);

i get


quote:



01:19:48,140 INFO [STDOUT] [Flex]
Thread[RTMP-Worker-2,5,jboss]: Closing due to unhandled exception
in reader thread: java.lang.IndexOutOfBoundsException: Index: 0,
Size: 0

at java.util.ArrayList.RangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at
flex.messaging.io.tcchunk.TCCommand.getArg(TCCommand.java:260)

at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:821)

at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424)

at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)

at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)

at java.lang.Thread.run(Unknown Source)





The same code works fine on RED5.

What's wrong?



RTMP channel definition is :


quote:



<channel-definition id="my-rtmp"
class="mx.messaging.channels.RTMPChannel">

<endpoint uri="rtmp://{server.name}:2040"
class="flex.messaging.endpoints.RTMPEndpoint"/>

<properties>

<idle-timeout-minutes>20</idle-timeout-minutes>


<client-to-server-maxbps>100K</client-to-server-maxbps>


<server-to-client-maxbps>100K</server-to-client-maxbps>

</properties>

</channel-definition>

0 Replies