如何直接在服务器上录制视频而不要求用户上传
我希望用户直接在线录制并保存,而不是要求用户上传视频文件。就像他的网络摄像头打开一样 - 他访问网站,单击记录按钮 - 记录他的消息并单击完成 - 视频保存在我的服务器上。
就像 YouTube 上描述的那样: http://www.google.com/ support/youtube/bin/answer.py?hl=en&answer=57409
执行此操作有多困难或容易。任何提示、示例、想法 谢谢
Instead of asking user to upload a video file - I want the user to directly record online and save it. Like with his webcam on - he visits the website, clicks on the record button - records his message and clicks done - the video is saved on my server.
Something like what is described for youtube here:
http://www.google.com/support/youtube/bin/answer.py?hl=en&answer=57409
How difficult or easy is it to do this. Any tips, examples, ideas
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
http://www.red5-recorder.com/demo.php
就是这样做的。
http://www.red5-recorder.com/demo.php
Does just this.
YouTube 使用 Flash 小程序来完成此操作。
YouTube uses a Flash applet to do it.
您需要一个 Java 小程序来在客户端录制视频,一旦整个视频录制完毕,将其作为普通文件发布到您的脚本 URL 上,然后您可以将其作为普通文件上传进行处理。我使用类似的技术使用 Java Sound API 来录制音频。你可以google一下,你会发现一个开源小程序。
You would need a Java applet that would record the video on client-side and once the whole video is recorded post it on your script url as a normal file, you would then process it as a normal file upload. I used a similar technique for recording audio using Java Sound API. You can google and you will find an opensource applet.
你不能用直接的 html 来做到这一点。
您可以使用任何允许您访问摄像机并从中进行记录的客户端技术。这包括 java applet、flash 或 silverlight。
You can't do it in straight html.
You can use any client side technology that allows you to get access to the camera and record from it. This includes a java applet, flash, or silverlight.