Using RTSP with WebRTC

2,031 views
Skip to first unread message

이근우

unread,
Apr 26, 2018, 4:14:37 AM4/26/18
to discuss-webrtc

HTML5 does not support RTSP. Therefore, to use RTSP in HTML5, you must use WebRTC. The usual structure is IP Camera (RTSP) -> Server -> Chrome (HTML5) structure. 1. IP Camera (RTSP) <-> Chrome (HTML5) method, how can I connect IP Camera to HTML5 without server? 2. Is WebRTC transcoding RTSP to VP8 supported by Chrome? Thank you for your advice. Have a good day

Jeremy Noring

unread,
May 1, 2018, 5:52:34 PM5/1/18
to discuss-webrtc


On Thursday, April 26, 2018 at 2:14:37 AM UTC-6, 이근우 wrote:

HTML5 does not support RTSP. Therefore, to use RTSP in HTML5, you must use WebRTC. 
The usual structure is IP Camera (RTSP) -> Server -> Chrome (HTML5) structure.

That's the usual structure, which is entirely wrong for WebRTC.  You want to ditch your RTSP library and implement WebRTC.  So the new structure would look like 

IP Camera (WebRTC) -> Remote Peer (Chrome, Firefox, etc.)

Or if blocked by NAT, you'd need a TURN server:

IP Camera (WebRTC) -> TURN server -> Remote Peer (Chrome, Firefox, etc.)
 
2. Is WebRTC transcoding RTSP to VP8 supported by Chrome?

RTSP is a networking protocol.  VP8 is a video encoding method.  They're totally different things; you can't transcode from one to the other.
 

Chen Cong

unread,
May 1, 2018, 9:56:51 PM5/1/18
to discuss-webrtc
You can use Gstreamer webrtc plugin.


IP Camera(RTSP)  -> Gstreamer(WebRTC) -> Chrome(HTML5)

And you also can use Gstreamer to transcoding , it's really simple.


在 2018年4月26日星期四 UTC+8下午4:14:37,이근우写道:

Lorenzo Miniero

unread,
May 2, 2018, 2:45:48 AM5/2/18
to discuss-webrtc
Just FYI, Janus does support RTSP-to-WebRTC translation. No transcoding, though, which shouldn't be an issue if your camera supports H.264 baseline:

L.
Reply all
Reply to author
Forward
0 new messages