AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.52k stars 180 forks source link

Mode label showing RTC even though stream is MSE #562

Open felipecrs opened 1 year ago

felipecrs commented 1 year ago

image

{
      "type": "MSE/WebSocket active consumer",
      "remote_addr": "179.106.189.52, 179.106.189.52, 127.0.0.1:49948",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
      "medias": [
        "video, sendonly, H264, H265",
        "audio, sendonly, MPEG4-GENERIC, PCMA, PCMU, L16, PCML, OPUS"
      ],
      "senders": [
        "98 H265, bytes=489035, receivers=1",
        "8 FLAC/8000, bytes=162560, receivers=1"
      ],
      "send": 882583
    },
    {
      "type": "WebRTC/WebSocket async passive consumer",
      "remote_addr": "udp4 srflx 179.106.189.52:56880 related 0.0.0.0:0",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
      "medias": [
        "video, sendonly, VP8, RTX, VP9, H264, AV1, RED, ULPFEC, FLEXFEC-03",
        "audio, sendonly, OPUS/48000/2, RED/48000/2, G722/8000, PCMU/8000, PCMA/8000, CN/8000, TELEPHONE-EVENT/48000, TELEPHONE-EVENT/8000, L16, PCML"
      ],
      "senders": [
        "8 PCMA/8000, bytes=162240, receivers=1"
      ],
      "send": 163688
    }

Apparently the stream is using RTC for audio and MSE for video. I'm not sure, but isn't this a bit misleading?

Perhaps it should show something like RTC/MSE?

AlexxIT commented 1 year ago

Can you stably repeat the problem or is it quite rare?

felipecrs commented 1 year ago

Yes, I can very easily repeat the problem:

https://github.com/AlexxIT/WebRTC/assets/29582865/7ccdf6bd-d7fd-40a8-a1c9-0fbfdb919660