Hello,

I'm unable to stream a stored flv on Flash Media Server.

I created a sample folder in the applications directory. Added main.asc and
video2.flv.

I created a fla locally with a video object (named sample_video) and the
following code on the first frame of the main timeline.

var nc:NetConnection = new NetConnection();
nc.onStatus = function(info){
trace1("NetConnection.onStatus called: ("+getTimer()+" ms)");
for (var prop in info) {
trace1("\t"+prop+":\t"+info[prop]);
}
trace1("");
}
nc.connect("rtmp://servername.com/sample"); \\where servername
is the actual name of our server.

var ns:NetStream = new NetStream(nc);
var sample_video:Video;

ns.setBufferTime(0);
sample_video.attachVideo(ns);
ns.play("video2.flv");

ns.onStatus = function(info){
trace1("NetStream.onStatus called: ("+getTimer()+" ms)");
for (var prop in info) {
trace1("\t"+prop+":\t"+info[prop]);
}
trace1("");

}

Here's the output:


NetConnection.onStatus called: (150 ms)
description: Connection succeeded.
code: NetConnection.Connect.Success
level: status

NetStream.onStatus called: (165 ms)
clientid: 89429232
details: video2.flv
description: Playing and resetting video2.flv.
code: NetStream.Play.Reset
level: status

NetStream.onStatus called: (165 ms)
clientid: 89429232
details: video2.flv
description: Started playing video2.flv.
code: NetStream.Play.Start
level: status


Looks like everything is okay but I don't get any video in my output. Also,
the fms2_console says that it is playing live video2.flv. How do I change this
to "stored".

Any help would be greatly appreciated as I have search the web for a full day
and no luck getting this to work. The examples are geared more towards live
streaming, haven't found one yet for streaming just a plain old flv.