I don't know flex, but shouldn't you specify where to connect to?
For example in openlaszlo I have <rtmpconnection
src="rtmp://10.99.11.206/red5test" autoconnect="true"/>
and for the actual camera capture
<videoview name="capture" url="${parent.sName}" type="rtmp">
<camera name="kemra" show="true" deviceindex="${
parent.parent.dIndex}"/>
</videoview>
<view name="controlls">
<simplelayout/>
<button text="broadcast" onclick="
parent.parent.capture.stream.broadcast()"/>
<button text="record" onclick="
parent.parent.capture.stream.record()"/>
<button text="stop" onclick="parent.parent.capture.stream.stop
()"/>
</view>
it's not exactly action script, though :)
On 9/6/07, Thys <[EMAIL PROTECTED]> wrote:
>
> Hi there
>
> I have the following piece of Flex 3 code:
>
> camera = Camera.getCamera();
> microphone = Microphone.getMicrophone();
> var stream:NetStream = new NetStream(av5.netConnection);
> stream.attachCamera(camera);
> stream.attachAudio(microphone);
> var vid:Video = new Video();
> vid.attachCamera(camera);
>
>
> var vidpsrite:Sprite = new Sprite();
> vidpsrite.addChild(vid);
> var wrp:UIComponent = new UIComponent();
> wrp.addChild(vidpsrite);
> wrp.setActualSize(vid.width,vid.height);
> vidc.addChild(wrp);
> stream.publish("red5StreamDemo","live");
>
> The problem is that I do not see any stream being published.
>
> If I publish using the simpleBroadcaster, it works perfectly.
>
> Any pointers ?
>
>
> Thanx
>
> Thys de Wet
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
--
lp,
Anže
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org