mercredi 9 avril 2014

ActionScript 3 - AS3 Flash/AIR enregistrement vidéo avec webcam et l'enregistrer - Stack Overflow


Is it possible for AS3 to record a video with a webcam and save it to a local disk/to a network server?




You can use an Air app called AirCam to achieve this. It uses the BitmapData class to generate a FLV file. If you want to build it yourself they also include the the source code on the site. There class does not support sound though.



The purpose of this revolutionary new class is to record a stream of BitmapData to a FLV-file, because writing directly, and especially the converting-BitmapData-to-ByteArrays-with-byteshifting-part, made everything run shaky. I solved that issue by saving the BitmapData to a temporary file on the system. This to protect your RAM from overloading, and when done recording, the class converts that temporary file to an FLV-file.



http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/



Is it possible for AS3 to record a video with a webcam and save it to a local disk/to a network server?



You can use an Air app called AirCam to achieve this. It uses the BitmapData class to generate a FLV file. If you want to build it yourself they also include the the source code on the site. There class does not support sound though.



The purpose of this revolutionary new class is to record a stream of BitmapData to a FLV-file, because writing directly, and especially the converting-BitmapData-to-ByteArrays-with-byteshifting-part, made everything run shaky. I solved that issue by saving the BitmapData to a temporary file on the system. This to protect your RAM from overloading, and when done recording, the class converts that temporary file to an FLV-file.



http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/


0 commentaires:

Enregistrer un commentaire