带摄像头AS3的Flash / AIR录音录像,并保存它 [英] AS3 Flash/AIR recording video with webcam and save it

查看:284
本文介绍了带摄像头AS3的Flash / AIR录音录像,并保存它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能为AS3记录一个摄像头的视频,并将其保存到本地磁盘/网络服务器?

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

推荐答案

您可以使用AIR应用程序名为AirCam实现这一目标。它使用BitmapData类来生成一个FLV文件。如果你想建立它自己也包括网站的源$ C ​​$ C。有类不支持的声音虽然。

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.

这革命性的新的目的   类是记录流   的BitmapData到FLV文件,因为   直接写入,以及尤其是   转换-的BitmapData到的ByteArray与 - byteshifting部分,使一切运行不稳。我解决   这个问题通过保存的BitmapData到   在系统上的临时文件。本   为了保护您的RAM超载,   和在完成时记录,类   该临时文件转换为   FLV文件。

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/word$p$pss/2008/12/18/flvrecorder-record-to-flv-using-air/

这篇关于带摄像头AS3的Flash / AIR录音录像,并保存它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆