After we are moving over to html5 and many browsers like Google chrome bans VLC web plugin....
Is there any way to play h.264 / h.265 Rtsp streams in browsers this days?
After we are moving over to html5 and many browsers like Google chrome bans VLC web plugin....
Is there any way to play h.264 / h.265 Rtsp streams in browsers this days?
Direct RTSP streaming is still not supported by browsers, if you have to play an RTSP stream in the browser then you need a proxy server that will convert RTSP to HTTP stream.
Many open source projects are there that will do the work of RTSP to HTTP conversion or you can use FFmpeg (used by VLC) to convert RTSP to HTTP and then can stream it on the browser.
These guys put together an rtsp over websocket player. https://github.com/Streamedian/html5_rtsp_player
But it does require a server to create the connection and parse the rtsp info (they include an easy to install package to take care of that).
And it doesn't support h265.
As other mentioned you cannot play RTSP natively on any browser. If your source is strictly RTSP then you can use a proxy server between your RTSP server and browser. You can use WebRTC proxy server to play RTP on WebRTC compliant browsers. http://webrtc.live555.com/
you can use VXG Media Plugin for Chrome Supported video formats: H.264, MPEG-4, MPEG-2 and others. you can find full document related this plugin from link given below https://www.videoexpertsgroup.com/vxg-chrome-plugin/
https://www.videoexpertsgroup.com/nacl_player_api/#examples
This plugin works perfect but now it is not working. You can use ffmpeg and video.js to convert and display it for more detail see here Streaming via RTSP or RTP in HTML5
Bhargav: I've deleted another answer, please undelete this one.
It's possible with media-stream-library-js but you'll need to wrap RTSP into a WebSocket with websockify or websockify-nginx-module