My solution is to use FFmpeg + JSMpeg
docker run -d --name vnc -p 8888:8888 -e "ENABLE_VNC=true" -e "ENABLE_VNC_AUDIO=true" wuyu191287278/vnc:chrome_91.0
sudo apt-get -qqy install ffmpeg
pulseaudio --start --exit-idle-time=-1
Install screen-capture-recorder-to-video-windows-free To capture windows audio
go run main.go --static ./static --vncAddress localhost:5900 --udpAddress :1234
ffmpeg -f alsa -i pulse -f mpegts -codec:a mp2 udp://localhost:1234
http://localhost:8888