问题描述
我正在开发一个应用程序,我需要在其中录制语音(对于那些没有网络摄像头的人,因此他们只能使用麦克风来录制语音)或视频(那些有网络摄像头的人 - 如笔记本电脑或外部)文件并保存它们在服务器上,然后在数据库上保存文件名和登录用户 ID 以供以后访问.
I am developing an application where I need to record voice(for those who does not have a webcam so they can use only microphone to record voice) or video(those who have a a webcam - like laptop or external) files and save them on server, thereafter save the file name and logged in users id on database for later access.
我知道我需要为此使用某种 Flash 应用程序.但是,是否有任何免费的可以实现这一目的,或者即使有付费的可以实现这一目的,那就太好了.我试过谷歌,但可能是我无法找到合适的术语或其他东西,我无法成功找到合适的解决方案.
I know I need to use some sort of flash app for this. But is there any free one which could server this purpose or even if there are paid ones which could serve this purpose that would be great. I tried google but may be I was not being able to go after the proper term or something, I could not succeed finding a proper solution for this.
请帮帮我!
推荐答案
我在我们最新的项目中也有同样的功能,客户想要从网络摄像头录制视频,并且视频出现在用户的个人资料页面中.
I have same feature in our latest project, the client want to have video recording from webcam and the video appear in the user's profile page.
对于服务器,我们实现了 RED5 服务器.它需要在您的主机中安装一个 Java 虚拟机.您可以在网站上阅读详细要求和安装说明.
For the server, we implement the RED5 server. It need a Java virtual machine in your hosting. You can read the detail requirement and installation instruction in the website.
为了处理录音,我们开发了自己的 Flash 应用程序,因为客户端请求自定义界面以匹配整个网站界面.我不知道细节,因为我们将它外包给了一个 Flash 开发人员.也许你可以看到关注 此线程,JeroenW 开发的闪存记录.
To handle recording, we develop our own flash application, because the client request a custom interface to match with the overall website interface. I don't know the detail, since we outsource it to a fellow flash developer. Maybe you can see follow this thread, the development of flash recording by JeroenW.
要播放录制的视频,您可以使用任何支持播放 rtmp 视频源的 Flash 视频播放器.您不能直接在 RED5 中播放录制的 flv 文件,因为该文件缺少播放器所需的元数据.将录制的文件作为 rtmp 服务由 RED5 完成.
To play recorded video, you can use any flash video player that support playing rtmp video source. You cannot play the recorded flv file in RED5 directly, since the file lack of metadata required by the player. Serving the recorded file as rtmp is done by RED5.
这篇关于如何使用PHP、FLASH录制语音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!