Hello,

I'm trying to build a simple application that will record audio input
with Red5 (and only audio -- not video). I've tried using the example
code from the OL documentation, I've tried following examples from
various bloggers and example apps, but I still can't get it to work.
No matter what I do, my app always has the same problem -- audio
feedback. Please take a look at my code and help me figure out what is
happening:

----
<canvas height="300" width="400">
        
        <rtmpconnection src="rtmp://127.0.0.1/oflaDemo" autoconnect="true"/>
        
        <videoview id="v" url="test.flv" type="rtmp" height="240" width="360">
                <microphone capturing="true"/>
        </videoview>
        
        <button id="btn_rec" x="0" y="${vw.height + 240}" text="record"
onclick="v.stream.record()"/>
        <button x="${btn_rec.width}" y="${vw.height + 240}" text="stop"
onclick="v.stream.stop()"/>

</canvas>
----

Something MUST be working properly, because a new test.flv file is
created in the Red5 folder /ofla/streams/ after I try to record each
time. Trying to record anything, however, will immediately cause an
audio feedback loop.

Is there a problem with my syntax? Is there a problem with trying to
record audio with Red5? I've also read some sources saying that
recording only audio needs to use a mediastream that the microphone
can connect to directly, and avoid using the videoview. Is this
related to the problem?

Thanks for your help,
Colin

Reply via email to