PDA

View Full Version : [AS3] Record and playback videos using AS3 and Red5


RajNOX
08-27-2010, 03:51 AM
Im creating a web application which should enable the client in one end to record the web cam of his/hers and then the client in som other place can view it real time or later.

Real time viewing is working fine. Using Red5 and Flash or Flex with AS3 will make it done in simply few lines of coding.

The recording part is also working fine.

But the recored file cannot be playback successfully on later tym. if i play back the recorded flv in VLC or som other player it still works fine.

If I replace the recorded FLV file with som FLV downloaded from Youtube. then it too playbacks fine in web based flash player.

The problem is the recorded file is not getting playback in the web based flash player.

Actually i didnt use any 3rd party web based flash player. I craetedthe usual video type object in flash and attach my NetStream Object to it.

in the netstream object


ns.play("CLSSCR1.flv");


where CLSSCR1.flv is the recorded flv file in the red5 application. to record this is used the normal netstream


ns.publish("CLSSCR1","record");


PS : The recorded file somtymes get playback in web based flsh player. but it often get stuck. But most of he tym it doesnt play back. If i used an external flv downloaded from youtube or somthing then it work fine.

PS : I used the excisting Installer application in red5 server

Can any1 please help me out on this..

rsanaie
11-27-2010, 04:53 AM
Hey man, Sorry but I don't have the answer to your question. But wouldn't mind knowing how you captured the video into a file. Thanks