将实时 ip 摄像头嵌入网页
我正在尝试为客户设置一些网络摄像机。
但我无法将流从相机传输到网页,然后通过播放器播放。我尝试过不同的播放器,例如 WMP、VLC(无法使其工作)。我现在正在尝试使用 jplayer,如果我能让它像适用于手机或它所说的那样在这个上工作,那就太好了。
到目前为止我所做的是进入我的路由器(thomson TG585 v8)并设置端口转发。
我已经在 TCP/UDP 上设置了端口 554,在相机设置中它是 RTSP 端口。
我已将相机设置为静态 IP,并使用 no-ip 作为 ddns。
rtsp://thepolishknob.servebeer.com/h264/1/media.amp
这是我尝试使用的网址,但我无法将流传输到播放器我知道流在我的 LAN 之外工作,因为通过 VLC 连接到它昨夜。
如果有人能帮助我,我将不胜感激,因为我已经为此工作了一个多星期,但毫无进展。
因此,如果您发现我遗漏了任何内容或做错了什么,请告诉我。
i am trying to set up a few ip cameras for a client.
yet i am having trouble getting the stream from the camera to the webpage then for it to play through a player. i have tried different players such as WMP, VLC(cant get it to work). i am now trying to use jplayer which would be great if i could get it to work on this one as works for phones or so it says.
what i have done so far is to go into my router(thomson TG585 v8) and set up port forwarding.
i have set up port 554 on TCP/UDP which in the camera settings is the RTSP port.
i have set my camera to a static ip and am using no-ip for the ddns.
rtsp://thepolishedknob.servebeer.com/h264/1/media.amp
this is the url i am trying to use but i cannot get the stream on to the player i know the stream works outside my LAN as connected to it through VLC last night.
if anyone can help me it would be greatly appreciated as been working on this for over a week and been going nowhere.
so if you have noticed i have missed anything out or done something wrong please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有通用的方法来进行嵌入。通常的解决方案是以下之一:
由于 IP 摄像机带有 Web 界面,因此它们已经提供了某种在网页之外呈现视频的方法。通常,这是基于 ActiveX 控件的解决方案,具有各自的浏览器限制。您可以检查 HTML 并复制代码,也可以在供应商的文档中提及。
正如您发现的流是
RTSP
,并且希望有效的RTSP
而不需要任何技巧,可能有第三方解决方案“播放器”来在网页上呈现流。您可能希望将流重新编码为另一种格式(VLC 或其他应用程序),例如对浏览器更友好的 M-JPEG。您会发现很多对此的讨论,例如 http://forum .videolan.org/viewtopic.php?f=16&t=57715
There is no universal way to do the embedding. Typically solution is one of the following:
As IP cameras comes with web interface, they already provide some way to present video off the web page. Often, this is an ActiveX control based solution with respective browser limitations. You can check HTML and duplicate the code, and it can also be mentioned in the vendor's documentation.
As you discovered the stream is
RTSP
, and hopefully validRTSP
without tricks, there might be a third party solution "player" to present the stream off the webpage.You might want to re-encode the stream into another format (VLC or another aplication), such as M-JPEG which is more browser friendly. You'll find a lot of discussions for this, e.g. http://forum.videolan.org/viewtopic.php?f=16&t=57715