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.5k stars 152 forks source link

Logging IP reading/stopped reading #692

Open miramax281 opened 1 year ago

miramax281 commented 1 year ago

I was curious if there was a way to add the IP address of the client that starts/stops reading in the logs?

Example: 2023/01/24 22:46:46 [RTSP][WILL-CALL] 📕 Client stopped reading 172.16.0.100 2023/01/24 22:50:23 [RTSP][WILL-CALL] 📖 New client reading 172.16.0.100

I took a quick glance at the source and didn't immediately see an obvious way to do so. Could one point me in the right direction? Thanks in advance!

mrlt8 commented 1 year ago

You may be able to access more information through the rtsp-simple-server api, however as we're running the bridge in a container, I'm not sure if it will display the correct address..

      - RTSP_APIADDRESS=0.0.0.0:9997
      - RTSP_API=yes