Installing WebRTC
Web Real-Time Communication (WebRTC) is a protocol that allows modern web browsers to establish a peer-to-peer link to exchange data. UV4L uses WebRTC to create a socket to the Raspberry Pi and receive a live H264 video stream, eliminating the need for transcoding and allowing us to watch a high-quality, low-latency video directly in our browser.
To install the WebRTC module for uv4l-server
, we just need to issue one command and restart UV4L:
sudo apt-get install uv4l-webrtc sudo service uv4l_raspicam restart
WebRTC streaming
Please be aware that UV4L WebRTC streams in an adaptive bitrate and resolution. The bitrate and resolution streamed to the client will adaptively adjust based on the connection quality. This means that any configuration that you have applied will not apply to WebRTC streams, but the overlay will still work. It may also disconnect other streams that do not use WebRTC.
You can now navigate to http://raspberrypi:8080
, and you will be presented with a screen...