How to get RTSP stream over web application

浪尽此生 提交于 2020-01-24 17:32:06

问题


Suppose this is my video stream URL:

rtsp://MyUserID:MyPassword@45.113.153.42:556/cam/realmonitor?channel=1&subtype=0

The video stream works perfectly with VLC player but I want it to play it over my web application. Is there any possibility to play RTSP protocol in any web player?


回答1:


Off course! You can use VLC player on your web app!!

This link had all the information that you need.

https://wiki.videolan.org/Documentation:WebPlugin/

In my experience this plugin is really fast a reliable




回答2:


Unfortunately playing an rtsp via your web browser is not that straight forward anymore.

NPAPI Plugins are no longer supported

This means in the end the VLC plugin for browsers is no longer supported. Firefox 52+ and other browser don't support it anymore. See this announcement, basically stating that:

"installed NPAPI plugins are no longer supported in Firefox, except for Adobe Flash"

This also has been discussed on the videolan Forum, with no current solution.

Use an old Mozilla Firefox ESR browser

Still supports NPAPI plugins. However only until June 2018. Thus not really a future proof solution. Details on Firefox ESR can be found here.

A possible solution

You could use HTML 5 with some other coding technology to transform your RTSP stream into let's say a segmented stream and deliver it via HTML 5 video tag. There is alot of solutions out there; look into posts from stackoverflow such as:

  • Streaming via RTSP in HTML 5
  • VLC stream to chrome
  • Display an RTSP video stream in a web page (similar to your question)

Hope this points you in the right direction.



来源:https://stackoverflow.com/questions/47476862/how-to-get-rtsp-stream-over-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!