我应该如何将实时视频源集成到网站上?
我有一位客户想要在他们的网站上显示 24 小时实时录像,以展示他们正在进行的一些大型翻新工程的进度。
我研究过网络摄像机,说实话,这看起来是最合乎逻辑的技术,但不确定我是否遗漏了一些东西。是否可以将实时视频直接从摄像头放到他们的网站上(也许通过 iFrame)?
该网站将获得相当多的点击量,但不会产生巨大的点击量,因此我认为每个站点的常规宽带连接应该为他们提供足够的上传能力来实现这一目标。
我是否从正确的方向接近这个问题?在向客户推荐解决方案之前,我应该考虑什么?
I have a client who wants to display live 24 hour footage on their website, to show off the progress of a number of big refurbishment jobs they are carrying out.
I've looked at IP cameras and to be honest this looks like the most logical technology to use, but not sure if I'm missing something. Would it be possible to put the live feed straight from the camera onto their website (via an iFrame maybe)?
The website will be getting quite a few hits but nothing massive, so I think a regular broadband connection at each site should give them enough upload capacity to pull this off.
Am I approaching this from the right direction? Is there anything I should take into consideration before recommending a solution to the client?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,那会很好用。大多数 IP 摄像机将提供运动 JPEG 流,它实际上只是 JPEG 图像的集合。
这使您可以决定要发送到站点的帧速率。
提供一个带有一些 JavaScript 的 iframe 来以您想要的帧速率刷新 JPEG 将是一个简单的解决方案。
Yes, that will work fine. Most IP cameras will provide a motion JPEG stream which is really just a collection of JPEG images.
This allows you to decide on what framerate you want to send up to the site.
Providing an iframe with some javascript to refresh the JPEG at your desired framerate would be an easy solution.