send .webm recordings from a webcam stream, in chunks of user-specified time, to a socket.io server
npm install chunky-webcam
var chunky =getUserMedia =// get user webcam
examples/ for a robust client/server example.
var chunk = chunky(webcam_stream, chunk_duration_ms, uri)
start sending .webm files of length
chunk_duration_ms to a socket.io server
takes a webcam media stream.
the client will emit
'video' events over the socket.io connection, each containing binary blobs of the video
the underlying socket.io connection.
use this to, for example, subscribe to events coming from your socket.io server. or to emit other kinds of events to this server.