百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

ip-camera-browser-client

> 前端框架
开源

通常, IP 相机以 RTSP 协议传输视频。但浏览器无法呈现此格式,因此我们需要将其转换为 HLS 格式,以便现代浏览器可以显示。

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

通常, IP 相机以 RTSP 协议传输视频。但浏览器无法呈现此格式,因此我们需要将其转换为 HLS 格式,以便现代浏览器可以显示。

How to stream your IP Camera into browser

YouTube explanation and demo

Steps

Stream IP Camera to VLC player

  • For the case of TP-Link C200 model the URL I used = rtsp://{username}:{password}@{ip}:554/stream1
  • Input the URL in Network Stream

Convert stream to HLS

Execute FFMPEG command

.\server\libs\ffmpeg.exe -i rtsp://{username}:{password}@{ip}:554/stream1 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 5 -hls_list_size 3 -vcodec copy -y .\videos\ipcam\index.m3u8

After successful execution, we should see the converted video files (index.m3u8 *.ts)

Install the packages

  • Open new terminal tab
  • Go inside server folder
  • Run npm install

Cleanup streamed .ts files

  • Open new terminal tab
  • Go inside server folder
  • Run .\node_modules\.bin\nodemon .\cleaner.js
  • This will delete the streamed/served .ts files from local directory to save the space

Serve the auto generated hls (m3u8) file

  • Open new terminal tab
  • Go inside server folder
  • Run .\node_modules\.bin\nodemon .\hls-server.js

Test hls file in browser

  • Visit cookpete.com/react-player.
  • Input the m3u8 url [http://localhost:4000/index.m3u8] and press Load

Run react client

  • Open new terminal tab
  • Go inside client\hls-client folder
  • Run npm install
  • Run npm start

Notes

It is possible to automate all of the commands under simplified npm start command in server project. However, for better understanding of how things work and better clarity, I break down the steps and showed how easy it is to actually stream your IP Camera to your browser.

If you have real IP from your ISP, you can point your Domain to your IP and see the camera feed from anywhere in the world through the browser.

Next

  • Webcam streaming from browser camera to remote user

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptffmpeghlshls-live-streamingip-camera

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架