Maybe - with Red5 server for instance ( You have to install Red5 on your computer )

<canvas width="220" height="400">
 <splash/>
 <rtmpconnection src="rtmp://localhost/oflaDemo/" autoconnect="true"/>


<window title="Your microphone" width="180" height="380" align="center" valign="middle">

   <simplelayout axis="y" spacing="2"/>
   <videoview id="vr" url="" type="rtmp" align="center">
     <microphone id="mi1" name="mi1"  capturing="false"/>
   </videoview>
<text>Voice name</text>

   <edittext id="nazwapliku" width="160">noname</edittext>
   <text multiline="true" align="center">
</text> <button id="button1" align="center" text="Turn on mic" width="150">
     <method event="onclick">
       <![CDATA[
vr.mi1.setAttribute('capturing','true'); ]]>
     </method>
   </button>

<view bgcolor="black" width="${vr.stream.time/180*vr.width}" height="10"/>
   <view layout="spacing:4;axis:x" align="center">
     <button text="Record" width="73" >
<method event="onclick">
         <![CDATA[
vr.stream.setAttribute('url',nazwapliku.text);
                  vr.stream.record();
]]>
       </method>
     </button>
<button text="Stop" width="73" >
       <method event="onclick">
         <![CDATA[
                  vr.stream.stop();
                  vr.stream.close();
                  vr.mi1.setAttribute('capturing','false');
                  ]]>
       </method>
     </button>



   </view>

<button align="center" width="150" onclick="LzBrowser.loadURL('http://tuba.singlus.pl')"></button>

 </window>


</canvas>



For test you can use tuba.singlus.pl in place of localhost

Robert Pieprzny
www.pcg.pieprzny.pl

Reply via email to