問題描述
我正在開發一個應用程序,我需要在其中錄制語音(對于那些沒有網絡攝像頭的人,因此他們只能使用麥克風來錄制語音)或視頻(那些有網絡攝像頭的人 - 如筆記本電腦或外部)文件并保存它們在服務器上,然后在數據庫上保存文件名和登錄用戶 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錄制語音文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!