# FMS video playing but not PLAYING

**URL:** <https://forum.kirupa.com/t/fms-video-playing-but-not-playing/266639>\
**Category:** flash\
**Created:** [July 22, 2008, 10:50pm UTC](https://forum.kirupa.com/t/fms-video-playing-but-not-playing/266639 "2008-07-22T22:50:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel0](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@daniel0](https://forum.kirupa.com/u/daniel0)\
**Post date:** [July 22, 2008, 10:50pm UTC](https://forum.kirupa.com/t/fms-video-playing-but-not-playing/266639/1 "2008-07-22T22:50:15Z")

</div>

I’m working on a clients site who has set up FMS and sent me the url to the videos (rtmp://host.com/_definst_/video.flv) they want to show.

The video plays back through the FLVPlayback compnonent but I can’t get it to play through my custom player.

When I try to play it the NetStream.Play.Reset and NetStream.Play.Start events trigger but the video doesn’t play and my onMetaData function isn’t being called (onBWDone is being called). On the Play.Start event I start tracing out the NetStreams time property and it’s remaining at zero as well.

I’m guessing it’s a meta-data issue but I’m not sure if I’m missing something and since I didn’t set up the server and haven’t worked with a media server before I want to make sure I’m not missing anything on my end before I contact the client.

If any wise people out there could help it would be much appreciated.

Here are some snippets.

public function Connect(server:String=null):void  
{  
var client:Object = new Object();  
client.onMetaData = function(metaData:Object){  
trace(metaData.duration);  
}  
client.onBWDone = function(){  
trace(“bwDone”);  
}

\_connection = new NetConnection();  
\_connection.client = client;  
\_connection.addEventListener(NetStatusEvent.NET\_STATUS, netStatusHandler);  
\_connection.addEventListener(SecurityErrorEvent.SECURITY\_ERROR, securityErrorHandler);  
\_connection.addEventListener(AsyncErrorEvent.ASYNC\_ERROR, onAsyncError);  
\_connection.connect(server);  
}//fnct

private function netStatusHandler(event:NetStatusEvent):void {  
trace(“Level:”+event.info.level+" Code:"+event.info.code);  
switch (event.info.code) {  
case “NetConnection.Connect.Success”:  
openStream();  
break;  
case “NetStream.Play.StreamNotFound”:  
trace(“Stream not found: " + \_videoURL);  
break;  
case “NetStream.Play.Reset”:  
//\_stream.send(”@setDataFrame", “onMetaData”, metaData);  
\_stream.receiveVideo(true);  
\_stream.receiveAudio(true);  
addEventListener(Event.ENTER\_FRAME,traceStuff);  
break;  
}  
} //end fnct

private function traceStuff(event:Event){  
trace(\_stream.time);  
}

private function openStream(){  
\_stream = new NetStream(\_connection);  
\_stream.addEventListener(NetStatusEvent.NET\_STATUS, netStatusHandler);  
//\_stream.client = this;  
\_stream.bufferTime = \_bufferTime;

var video:Video = new Video();  
addChild(video);

video.attachNetStream(\_stream);  
\_stream.play(\_videoURL);  
}//end fnct
