RTSP 流 xml 或文本文件
我将制作一个流式 xml/文本文件。有谁知道是否可行?
据我所知,RTSP通常用于媒体流,如mp3、mp4等。它适用于文本文件还是xml文件?如果是的话,有人可以推荐一个流媒体服务器供我测试吗?
我搜索过的像 VideoLan 和 Live555 都是针对媒体的。如果没有这样的服务器,我可以只使用带有 PHP 的 Apache Web 服务器(例如,带有 RTSP 协议规范)来传输 xml 文件吗?
另一方面,如果我要流式传输 xml,格式应该是 StAX?
多谢。
I am going to make a streaming xml/text file. Does anyone know whether it is doable?
As I know, RTSP normally is for media streaming, like mp3, mp4 and etc. Does it work for text file or xml file? If yes, can anyone suggest a streaming server for me to test it?
What I have searched like VideoLan and Live555 which are just for media. If no such a server, can I just use an Apache web server with PHP, for exmaple, with RTSP protocol specification to stream the xml file?
On the other hand, if I am going to stream a xml, the format should be StAX?
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的 - 这是可行的 - 我们正在为视频分析的元数据流成功做到这一点。我们使用 live555 并在每次关闭 xml 文件时设置标记位(大约每秒 - 直接启动一个新文件)。
您必须确保您使用的是动态负载类型(请参阅 RFC2326有关此内容,请参见 C.1.3 节)
您还可以通读 Onvif 流媒体规范(这基本上是我们所要做的正在做)。
yes - it is doable - we're doing this successful for a meta data stream of video analytics. We're using live555 and setting the marker bit each time we close the xml-file (approx. every second - directly starting a new one).
you have to make sure, that you're using a dynamic payload type (see RFC2326 at section C.1.3 for this)
You can also read through the Onvif specification for streaming (it is basically waht we're doing).
为什么要使用 RTSP 来传输 XML 文件?国际海事组织这没有任何意义。 XML 包含什么?
正如您所说,它用于实时多媒体流。如果您需要有关 RTSP 的更多信息,请参阅 RFC2326。如果您想要“流”或更具体地传输/下载 xml 文件,为什么不使用 HTTP 或 FTP 等协议呢?
Why would you want to use RTSP to stream an XML file? IMO that doesn't make any sense. What does the XML contain?
As you stated it's for real-time streaming of multimedia. See the RFC2326 if you need more info on RTSP. If you want to "stream" or to be more specific transfer/download an xml file, why don't you use protocols such as HTTP or FTP?