| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jun 2004
Posts: 6
|
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 |
|
|
|
|
|
#2 |
|
One of many
Join Date: Sep 2002
Location: phoenix
Posts: 268
|
hello,
i tested your code after not seeing anything wrong with it and it worked just fine, so your good there. the only thing i could say would be the problem would be the flv itself. maybe recompile them again, or maybe you have a serverside script(main.asc) that needs to be restarted? |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|