WebCamera
基于WebRTC的点对点网络摄像头实时监控工具
Install / Use
/learn @ShouChenICU/WebCameraREADME
WebCamera

WebCamera 是一个基于 WebRTC 技术的网络摄像头监控工具,使用 Nuxt.js 框架开发。
目录
特性
- 实时视频流: 使用 WebRTC 技术实现高效的实时视频流。
- 跨平台支持: 兼容多种浏览器和设备。
- 易于开发: 基于 Nuxt.js 框架,方便扩展和维护。
- 模块化设计: 便于功能的扩展和集成。
- 隐私安全: 使用点对点加密连接,保护隐私安全。
安装
在开始之前,请确保您的系统已经安装了 Node.js 和 Yarn。
- 克隆仓库
git clone https://github.com/ShouChenICU/WebCamera.git
cd WebCamera
- 安装依赖
yarn install
使用
- 启动开发服务器
yarn run dev
-
打开浏览器访问
http://localhost:3000 -
摄像头先连接,然后监控页面填入和摄像头相同的连接ID,点连接,即可连接到摄像头。
构建
- 进入项目根目录执行
yarn run build
- 构建输出在
.output目录中 - 进入
.output执行如下命令即可启动服务
node server/index.mjs
自部署请注意: 浏览器媒体权限(摄像头和麦克风等)需要地址为localhost或使用HTTPS才能正常申请和启用,请自行配置HTTPS部署。
Docker运行
docker build -t webcamera .
docker run -d -p 3000:3000 webcamera
贡献
我们欢迎任何形式的贡献!如果你有任何建议或发现了 bug,请提交一个 issue 或者发送一个 pull request。
- Fork 本仓库
- 创建一个新的分支 (
git checkout -b feature-branch) - 提交你的更改 (
git commit -am 'Add some feature') - 推送到分支 (
git push origin feature-branch) - 创建一个新的 Pull Request
许可证
该项目基于 MIT 许可证,详细信息请参阅 LICENSE 文件。
<a href="https://star-history.com/#ShouChenICU/WebCamera&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ShouChenICU/WebCamera&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ShouChenICU/WebCamera&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ShouChenICU/WebCamera&type=Date" /> </picture> </a>
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
