Hi,
I am making a video widget which plays FLV files connecting FCS(Flash Communication Server). Every thing working fine, but stuck with some FLV files. I don’t understand why those FLV files playing not playing.
I am using this code to play FLV files using FCS…
var nc:NetConnection = new NetConnection();
nc.connect("rtmp:/video-rec");
var ns:NetStream;
nc.onStatus = function(info:Object) {
if (info.code == "NetConnection.Connect.Success") {
trace("connected");
ns = new NetStream(nc);
vid.attachVideo(ns);
ns.onStatus = function(inf:Object) {
trace(inf.code);
};
}
};
my_mc.onRelease = function() {
ns.play("BrianHertaPSA");
};
I can play rest of the files. But got stuck with some FLV files. I can play these files giving absolute URL like this…
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
// vid is the Video object instance name..
vid.attachVideo(ns);
ns.play("d:/flv/BrianHertaPSA.flv");
BTW, the FLV files are converted using Sorenson FLV converter…
Is there any other types of FLV files which flash doesn’t support through FCS.
Is there any need to modify the FLV file metadata?
Thanx in Advance… =)