Answer the question
In order to leave comments, you need to log in
How to record a video from a webcam on a website (scripts or technologies) and save it to the database?
Task : We press a button on the site and record a video in 30 seconds, then it is stored in the database and, if necessary, displayed on the screen.
What can be used to implement?
Links, technologies and services, programming languages and just hints are welcome!
Thank you very much!
Answer the question
In order to leave comments, you need to log in
https://github.com/arut/nginx-rtmp-module
+ the client on the flash
is too lazy to tear out the code now, but if we briefly
create
connection = NetConnection()
Connect to the server connection .connect(<address of the recording application on the server>)
stream = NetStream(connection );
Attach a camera with a microphone to the stream stream.attachCamera(); stream.attachAudio()
Publishing stream .publish(<video file name on server>, "record");
After 30 seconds, close the connection stream.close() connection.close()
Check out <cameratag> - a ready-made service to make your task easier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question