How to play / stream RTSP over the Internet.

Can someone help me in the right stream of RSTP on the Internet?

So, I have this url rtsp://192.168.1.55:554/vid/stream/channels/1 When playing through a VLC player, Streaming on my desktop, as shown, is running / streaming.

My next task is to view it via WEB. So I created a simple HTML site and introduced the quicktime code that I found somewhere in stackoverflow.

 <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="400" HEIGHT="300" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab";> <PARAM NAME="src" VALUE="rtsp://192.168.1.55:554/vid/stream/channels/1";> <PARAM NAME="controller" VALUE="false"> <PARAM name="AUTOPLAY" VALUE="true"> <PARAM NAME="qtsrc" VALUE="rtsp://192.168.1.55:554/vid/stream/channels/1";> <PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html";> <PARAM name="type" VALUE="video/quicktime"> <EMBED WIDTH="400" HEIGHT="300" AUTOPLAY="true" CONTROLLER="false" SRC="rtsp://192.168.1.55:554/vid/stream/channels/1"; qtsrc="rtsp://192.168.1.55:554/vid/stream/channels/1"; BGCOLOR="FFFFFF" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html";></EMBED> </OBJECT> 

I also included them in the <head>

 <script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"></script> <script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"></script> <link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" /> 

But when I load the page, I get a blank screen.

I tried chrome / ie / firefox.

+6
source share
1 answer

You need to redirect the general port 554 of the router to the private port 192.168.1.55DUC54 in order to access it elsewhere on the network.

finally you need to change the code:

RTSP: //XXX.XXX.XXX.XXX: 554 / VID / Stream / channels / 1

instead

RTSP: //192.168.1.55: 554 / VID / Stream / channels / 1

where XXX.XXX.XXX.XXX is the public ip of your router

-2
source

Source: https://habr.com/ru/post/956060/


All Articles