RWS

  • enable camera sudo raspi-config nonint do_camera 1
  • set memory sudo raspi-config nonint do_memory_split 256

update system

  • sudo apt-get update
  • sudo apt-get dist-upgrade

install rws

  • wget https://github.com/kclyu/rpi-webrtc-streamer-deb/blob/master/rws_0.74.1_RaspZeroW_armhf.deb?raw=true -O rws.deb
  • sudo apt-get install libavahi-client3 -y && sudo dpkg -i rws.deb
  • systemctl enable rws && systemctl start rws
  • go to http://raspberrypi:8889/np2 or try the command below
  • i=`hostname -I`; echo -e http://''"${i// /}:8889/np2/"''

more info
https://github.com/kclyu/rpi-webrtc-streamer