mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.7k stars 176 forks source link

Is it possible to use Wyze-Bridge to replace Unreal Media Server? #821

Open Tech500 opened 1 year ago

Tech500 commented 1 year ago

I have Unreal Media Server runniing 24/7 on a Windows PC. I would like to find a way to use Raspberry PI 4 running Wyze-Bridge to accomplish; displaying the RTSP feed, as in this Gist:

https://gist.github.com/Tech500/b760abbe9033b60be36d097158c39c69

I have a Docker Wyze-Bridge container and can display Wyse Cams v3 at http://ip_address:5000 in Chronium browser.

William

mrlt8 commented 1 year ago

WebRTC is supported and the pi4 should be more than capable of running the bridge.

Tech500 commented 1 year ago

How do you embed webrtc url on a web page?

Wyze-Bridge is on a 172.x.x.x network; my LAN network is on 10.x.x.x, how to setup for 10.x.x.x network?

William

Tech500 commented 1 year ago

Have tried setting up macVlan networking; wyze-bridge is assigned an ip address of 10.0.0.3. Browser will not connect to 10.0.0.3. Looking at wyze-bridge log shows ip 10.0.0.3:5000 with 2 streams enabled.

Any help appreciated.

mrlt8 commented 1 year ago

you'll need to add this under environment in your docker-compose.yml:

- WB_IP=10.0.0.3

as well as the following ports under ports:

    - 8889:8889 #WebRTC
    - 8189:8189/udp # WebRTC/ICE

you could then either use an iframe or some javascript to embed the WebRTC video using WHEP which is how we're doing it in the WebUI.

Tech500 commented 1 year ago

Thank you mrlt8!

Turns out the ip address for the server (Raspberry Pi) works better than the ip address of the docker container. Also, I am using network=host; might account for server address working better than container ip.

I have a working embedded webRTC url now: https://gist.github.com/Tech500/80a0101d6b0b5a155cd824e7c93ffce6 Works both locally and remotely (over Internet). Near zero latency! Able to see birds in flight gracefully!

Regards, William