Question
FMS2 on Windows: Can't get flash to stream
I've installed FMS2 on a Windows 2000 machine with intention
to evaluate flash video as a streaming system. The server starts
properly and I can log into it using the FMS2 console app.
Unfortunately after 24 hours of messing around with it I still
can't get a simple client app to load & display any video!
Following tutorials online I've created an application directory called C:\Program Files\Macromedia\Flash Media Server 2\applications\testapp and inside that a directory named 'video' containing one .flv file, 'ACS1.flv'.
A colleague has put together a simple flash app to connect to this server and stream the content. His code for connecting to the FMS and loading the video is as follows:
import mx.remoting.debug.NetDebug
video_src = "ACS1";
stop();
//Open a new NetConnection to attach a remote object
nc=new NetConnection();
nc.onStatus = function(infoObject) {
_root.nc_status.text += "Status (NetStream)" + newline;
_root.nc_status.text += "Level: "+infoObject.level + newline;
_root.nc_status.text += "Code: "+infoObject.code + newline;
};
nc.connect("rtmp://10.9.0.25/testapp/video");
//Declare a Streaming Object called NetStream
NewStream=new NetStream(nc);
NewStream.setBufferTime(5);
NewStream.onStatus = function(infoObject) {
_root.ns_status.text = "NS status: " + infoObject.code;
};
//MyVideo is the video instance on the stage
my_video.attachVideo(NewStream);
//Push Play on the movie
NewStream.play(video_src);
Following various suggestions online I've tried putting ACS1.flv in a couple of other locations. Relative to the application directory I've tried 'video/_definst_', '/streams' and '/streams/_definst_' but they've had no visible effect.
Can anyone give me any pointers? Thanks in advance.
Following tutorials online I've created an application directory called C:\Program Files\Macromedia\Flash Media Server 2\applications\testapp and inside that a directory named 'video' containing one .flv file, 'ACS1.flv'.
A colleague has put together a simple flash app to connect to this server and stream the content. His code for connecting to the FMS and loading the video is as follows:
import mx.remoting.debug.NetDebug
video_src = "ACS1";
stop();
//Open a new NetConnection to attach a remote object
nc=new NetConnection();
nc.onStatus = function(infoObject) {
_root.nc_status.text += "Status (NetStream)" + newline;
_root.nc_status.text += "Level: "+infoObject.level + newline;
_root.nc_status.text += "Code: "+infoObject.code + newline;
};
nc.connect("rtmp://10.9.0.25/testapp/video");
//Declare a Streaming Object called NetStream
NewStream=new NetStream(nc);
NewStream.setBufferTime(5);
NewStream.onStatus = function(infoObject) {
_root.ns_status.text = "NS status: " + infoObject.code;
};
//MyVideo is the video instance on the stage
my_video.attachVideo(NewStream);
//Push Play on the movie
NewStream.play(video_src);
Following various suggestions online I've tried putting ACS1.flv in a couple of other locations. Relative to the application directory I've tried 'video/_definst_', '/streams' and '/streams/_definst_' but they've had no visible effect.
Can anyone give me any pointers? Thanks in advance.
