PDA

View Full Version : video won't show up when streaming with FMS2



Lundin
September 2nd, 2007, 10:05 AM
Hi!

I am trying to get FMS to work and as far as i can see (from the fms2 console) it actually streams the content(flv) that i have in my application folder (i have also the main.asc there) . But in my swf the video won't show up. What am i missing ?



NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0

var nc:NetConnection = new NetConnection();

nc.connect('rtmp://**********/video/stream/_definst_');
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
function onAsyncError(event:AsyncErrorEvent):void {
connectStream();
}
function onNetStatus(evt:NetStatusEvent):void{
connectStream();
}


function connectStream():void {
var stream:NetStream = new NetStream(nc);
var videos:Video = new Video();
videos.attachNetStream(stream);
addChild(videos);
stream.play("door");
}



thanks!

Lundin
September 2nd, 2007, 12:34 PM
Ok, seems to be a problem with my Server and the MIME-type (Apache)..anyone have the syntax for .flv extension to add in the httpd.conf ?

Lundin
September 2nd, 2007, 01:52 PM
Added

AddType video/x-flv .flv

and also changed the global security setting to allow my folder(where the swf is located which is same as the wwwroot)...but no...i wont show any video instance on scene...hmm

Letharion
September 2nd, 2007, 04:13 PM
Try another webserver to see if that really is the problem. Lighttpd for example. :)