Record video and audio from your camera and microphone in your browser — no files uploaded, saved locally.
getUserMedia({video:true,audio:true}) 获取媒体流,绑定到 video 元素预览。MediaRecorder 录制流,数据在 ondataavailable 中以 Blob 分块返回。MediaRecorder.isTypeSupported() 检测容器/编码支持(常为 WebM)。🔒 视频仅在本地录制与保存,不会上传任何服务器。首次使用需授予摄像头/麦克风权限。录制格式为 WebM(Chrome/Edge/Firefox 支持)。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Capture | getUserMedia needs a secure context and user consent | W3C Media Capture and Streams |
| Codec | MediaRecorder mimeType support varies by browser | W3C MediaStream Recording |
| Privacy | explicit consent plus visible indication while recording | W3C Media Capture and Streams |