Make automated FSCommand invocation tests show player-side output.
[gnash.git] / testsuite / network.all / netstream.as
blob24a5b627d39230844812e2b6d8e7806b42108be7
2 //Open a new NetConnection to attach a remote object
3 var nc = new NetConnection();
5 //RTMP=(Real-Time Messaging Protocol)
6 //rtmp://host[:port]/appName[/instanceName]
8 //nc.connect("http://localhost");
9 nc.connect("rtmp://localhost/oflaDemo");
11 //Declare a Streaming Object called NetStream
12 var ns = new NetStream(nc);
13 ns.setBufferTime(10);
15 // Attach de stream to the video
16 // ns.attachVideo();
18 //Push Play on the movie
19 // NewStream.attachAudio(Microphone.get());
20 // NewStream.attachVideo(Camera.get());
22 // this is a url variable passed in the object call
23 //ns.publish(stream);
24 ns.play("DarkKnight.flv");
26 note(dumpObject(ns));