访问 IP 网络摄像头流
我被要求调查直接在 Silverlight 应用程序(在浏览器中运行)中使用 IP 摄像机流。据我所知,这似乎意味着我需要能够处理 RTSP 流和 Motion JPEG 流。 Silverlight 本身并不支持这两者。
我找到了一个用于 MJPEG 解码的库(http://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder),但它只支持 Silverlight 中的 OOB,这是一个问题。
我只能找到 RTSP 的商业产品,但我还了解到您可以使用 MediaStreamSource API 手动执行几乎任何流,但我在任何地方都找不到有关如何在 RTSP 中执行此操作的信息。
那么你该怎么做呢?
I have been asked to investigate having IP camera streams directly in the Silverlight application (running in browser). From what I can see this seems to mean I need to be able to handle RTSP streams and Motion JPEG streams. Both of which are not natively supported in Silverlight.
I found a library (http://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder) for MJPEG decoding but it only supports OOB in Silverlight which is a problem.
I could only find commercial products for the RTSP but I also read that you can use the MediaStreamSource
API to do almost any stream manually but information on how to do this in RTSP I couldn't find anywhere.
So how do you do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过 Silverlight MediaElement 吗?它基本上提供 Windows Media Player 作为 Silverlight 控件,据我所知它支持 RTSP 和 Motion JPEG。然而,RTSP 是一个互操作的噩梦,Windows Media Player 实现可能无法播放所有来源的 RTSP。您应该能够将源属性设置为 URL。如果无法播放流,正如我所说,可能是 RTSP 不兼容。
Have you tried Silverlight MediaElement? It basically provides windows media player as a Silverlight control and as far as I know it supports RTSP and motion JPEG. However, RTSP is a bit of an interoperation nightmare the windows media player implementation may not play RTSP from all sources. You should just be able to set the source property to the URL. If it fails to play the stream, as I said, it's probably an RTSP incompatibility.