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.44k stars 170 forks source link

Video streams causing Home assistant to crash - Log entries attached #716

Open frank451a opened 2 months ago

frank451a commented 2 months ago

Hi

I hav erecently got into webrtc etc. Having issues with one touchscreen android 7 client whereby it kills HA. The error in the log is below. Not sure what to do to resolve or fi its supported anymore?

There are 1000s of entries until HA gives up. I cant update the android unit as its locked down The android hardware is based on a iot3399-e similar to Firefly RK3399

2024-06-19 22:16:14.314 ERROR (MainThread) [frontend.js.latest.202406101] Uncaught error from Firefox 106.0 on Android 7.1.2 RangeError: source array is too long onmse/this.onmessage.mse/this.ondata (/webrtc/video-rtc.js:463:25) onopen/< (/webrtc/video-rtc.js:338:22)

AlexxIT commented 1 week ago

Are you using v3.5.2? I don't know why this line can generate this error:

https://github.com/AlexxIT/WebRTC/blob/ff5520880ce1d0553a8c6a5001067057f602c7ac/custom_components/webrtc/www/video-rtc.js#L463

frank451a commented 1 week ago

Yes 3.5.2 and go2rtc 1.9.4. Not sure if using that particular line. Thank you

AlexxIT commented 1 week ago

I can hardly replicate the same environment. On Desktop in Chrome it is not possible to get this kind of error.