Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

flash media server and flex3

Avatar

Level 1
I want to connect to flash media server for a specific flv
file.. I am using rtmp://localhost/vod/sample. But is shows error
"Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.NetConnection was unable to invoke callback onBWDone.
error=ReferenceError: Error #1069: Property onBWDone not found on
flash.net.NetConnection and there is no default value."





Code:

// Initialize net stream

nc = new NetConnection();



nc.addEventListener(NetStatusEvent.NET_STATUS,netS
tatusHandler);

nc.addEventListener(SecurityErrorEvent.SECURITY_ER ROR,
securityErrorHandler);



nc.connect ("rtmp://localhost/vod/sample");

....



ns = new NetStream(nc);


ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErrorHandler);



When I use nc.connect(null); local flv resided in application
folder is taken and playing properly.



I have installed coldfusion in localhost and wamp in local
host ..port is different..80 and 81.



For flash media server i have kept default port i.e.
1935/1111.



Flash media server is installed in windows and in same mc I
am using.. If I run a vod applicaiton from flash media server its
working properly.



I am using flex 3.



Any help is appreciated.
0 Replies