First frame of FLV is displayed, nothing further
Hi All,
Anyone faced this problem......
Just trying to work with the FlashCom Server so I have been developing a lot of sample and demo applications. This time I wanted to try Video Streaming. I created an FLV file, but for some reasons it did not work (may be some problem with encoding, but when I import the same file on the stage it works perfectly). Then I took sample FLV files from an article and tried to work with that......
Initially even with that file I could not get any output and then I learnt that I need to add a MIME type in Apache (which I did)....... afterwhich I could get to see the first frame of the FLV file....... The problem is that it does not work any further...... No output after the first frame.... tried everything..... nothing works.
This is the code:
Code:
#include "NetDebug.as"
stop();
nc=new NetConnection();
nc.onStatus = function(infoObject) {
trace(infoObject.level);
trace(infoObject.code);
}
nc.connect("rtmp://90.0.0.89/cinema");
NewStream=new NetStream(nc);
NewStream.onStatus = function(infoObject) {
text_txt.text += "NewStream Object"+newline;
text_txt.text += "Level: "+infoObject.level + newline;
text_txt.text += "Code: "+infoObject.code + newline;
}
NewStream.setBufferTime(2);
NewStream.play("timescape");
MyVideo.attachVideo(NewStream);
Can anyone please help.
Thanks
Sunil Bhatia
|