Question
Stream FLV file off FMS?
I've streamed FLV files off FMS before, but always using
components. I'm trying a simple setup with a Video instance, with
no luck:
I put my FLV file on FMS in /myApp/streams/_definst_/myVideo.flv
I have a Video object on stage with an instance name of 'vid'
My AS is:
var vid:Video;
var nc:NetConnection = new NetConnection();
var ns:NetStream = new NetStream(nc);
nc.onStatus = function(info){
trace(info.code);
vid.attachVideo(ns);
ns.play('myVideo');
}
nc.connect('rtmp://rtmphost/myApp');
When I publish, I get "NetConnection.Connect.Success" but no video or audio. What is not correct about this set up?
I put my FLV file on FMS in /myApp/streams/_definst_/myVideo.flv
I have a Video object on stage with an instance name of 'vid'
My AS is:
var vid:Video;
var nc:NetConnection = new NetConnection();
var ns:NetStream = new NetStream(nc);
nc.onStatus = function(info){
trace(info.code);
vid.attachVideo(ns);
ns.play('myVideo');
}
nc.connect('rtmp://rtmphost/myApp');
When I publish, I get "NetConnection.Connect.Success" but no video or audio. What is not correct about this set up?