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

webrtc broken after update to core 2022.7 #321

Closed Claudio1L closed 2 years ago

Claudio1L commented 2 years ago

after update to 2022.7, logged "login attempt failed"

dreimer1986 commented 2 years ago

Pull confirmed working perfectly. I am on 2022.7.1 by now, too btw. And no, it does NOT work without it. Even on .1 version.

2webrtc-camera.js?v2.3.0:123 Received MSE codecs: avc1.640020
2webrtc-camera.js?v2.3.0:133 Received WebRTC SDP
2webrtc-camera.js?v2.3.0:239 WebRTC state: connecting
2webrtc-camera.js?v2.3.0:211 Connecting over WAN
2webrtc-camera.js?v2.3.0:239 WebRTC state: connected
4webrtc-camera.js?v2.3.0:155 Auto seek to livetime
2webrtc-camera.js?v2.3.0:179 Switch to WebRTC
thefunkygibbon commented 2 years ago

just replaced the webrtc-camera.js from the latest commit and restarted, get the exact same issue. running 2022.7.1

Not "only replaced" All the step and order are important and then all cameras working fine!

yes, i deleted the pycache contents and tried it on a fresh browser that hasn't used it before etc. still not having it.

Claudio1L commented 2 years ago

Solved the iphone issue with a couple of frontend cache cleaning in the app. Next check will be android

Murder3D commented 2 years ago

Is this custom integration still being developed/mantained?

Vards0 commented 2 years ago

Fix did not work for me either.

harambe88 commented 2 years ago

2022.7.2 is out - and didn't fix it.

pickonedev commented 2 years ago

Is this custom integration still being developed/mantained?

Yes, the integration it is still active, @AlexxIT It is doing a great job, but all we need is patience. He just solved the Sonooff LAN issue (being in holiday), so I bet that he will save us with this problem too.

Cheers

gdgeist commented 2 years ago

+1 on 7.1 and 7.2 - issue remains

hugalafutro commented 2 years ago

I don't really understand the issue, but I think it might have to do with the ffmpeg version inside HA or something? if I run ffmpeg "rtmp://blablalbla" I get info about the stream as expected, doing the same with "rtsp://blablabla" stream gives me errors like Invalid data found when processing input or Unable to find a suitable output format for 'rtsp://blablabla

Again, I'm not the most technical, I just remember when webrtc camera worked in HA, I could run ffmpeg with rtsp stream without error message. (Similar 3y old issue, where rtsp was broken in some versions of ffmpeg I found while googling here:https://github.com/acaudwell/Gource/issues/216).

I have tried the steps outlined #318 to no avail.

harambe88 commented 2 years ago

Went back to 2.6.7 and webRTC is working!

subliminal1988 commented 2 years ago

@Claudio1L try to apply #320 and remove special characters from camera's login/password (if exists). It works for me. And change "version" at webrtc-camera.js file

FYI: Some cameras do not support a password without special chars.

ibanmda commented 2 years ago

Doesn't work also in:

Home Assistant 2022.7.3
Supervisor 2022.07.0
Operating System 8.2
Frontend 20220707.0 - latest
pepsonEL commented 2 years ago

Doesn't work also in:

Home Assistant 2022.7.3
Supervisor 2022.07.0
Operating System 8.2
Frontend 20220707.0 - latest

For me also no working

Bod1985 commented 2 years ago

Rather than commenting, please use the thumbs up feature if you only wish to confirm you’re also experiencing the issues, it isn’t productive and causes unnecessary notifications for subscribers.

alamoudimoh commented 2 years ago

+1 same here

freirejc commented 2 years ago

Guys, see below what worked for me... Everything working fine now.

  1. File Browser, change the file custom_components\webrtc\www[webrtc-camera.js] replace all content to below RAW code: https://raw.githubusercontent.com/skrobul/WebRTC/38c77b400f86f20a42e0b8103bb01f6a0a7377eb/custom_components/webrtc/www/webrtc-camera.js

  2. Delete the .gz file located in custom_components\webrtc\www

  3. Delete all files located in custom_components\webrtcpycache

  4. Remove IP Ban (in case you have it)

  5. Restart you HA and in the meantime you clear all the cash from your browser. Do not forget to clear the cash in your mobile phone app as well.

  6. Try to see your cameras in your browser and in your mobile app.

  7. If everything is working fime, turn on IP Ban again.

thefunkygibbon commented 2 years ago

Guys, see below what worked for me... Everything working fine now.

Yup, that's what I did. No dice.

What I'd like to understand is why doing any of this causes a "failed login" on the HASS USER level.
this sounds like some underlying HASS issue if some wrongly coded integration can cause this to happen.

dandanarsk commented 2 years ago

Still not working here after trying those steps (except 2, had no .gz file in custom_components\webrtc\www folder) No ip ban setup neither

freirejc commented 2 years ago

Did you guys full clean up the browser cash?

dandanarsk commented 2 years ago

Did you guys full clean up the browser cash?

Using the HA as web app, after cleaning the cache in Chrome as well is working... tks

vampywiz17 commented 2 years ago

reinstall repo with "Master" Branch via HACS and clear browser and phone app cache. now work well :)

Vards0 commented 2 years ago

I can confirm that the solution posted by freirejc above worked for me.

The only thing different that I had not tried in previous attempts was to delete the .gz file located in custom_components\webrtc\www.

Thanks

AlexxIT commented 2 years ago

Fixed in latest release https://github.com/AlexxIT/WebRTC/releases/tag/v2.3.1

VolkerLaude commented 2 years ago

That works - Thanks