Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect to stream after loss #631

Closed
popy2k14 opened this issue Jan 1, 2024 · 21 comments
Closed

Reconnect to stream after loss #631

popy2k14 opened this issue Jan 1, 2024 · 21 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@popy2k14
Copy link

popy2k14 commented Jan 1, 2024

Using go2rtc + webrtc camera in HA to display the door cam on an magic mirror on an HA dashboard.
It's working fine most of teh time. I have done some work in HA the last days an restarted it several times.
One time the stream did'nt survive (black screen with RTC in the right corner was shown) and i had to reload the page/dashboard, which i want to prevent.

After some tests: Restart go2rtc addon, HA core, ... the stream always survived.

Is there some sort of reload/reconnect implemented? (to be sure an stzream is always shown).

thx

@ccie11827
Copy link

I am also interested in this!

@popy2k14
Copy link
Author

Now I am doing the following as a workaround to prevent this issue:

  • Send key F5 to chromium on magic mirror
  • Delay 4 seconds
  • power on the monitor

So the dashboard gets freshly loaded everytime someone enters the room and issue doesn't pop up.

To solve this i am thinking of something like:
It checks every minute if it has a stream, when not, reload the stream

Is this possible?

@sigalou
Copy link

sigalou commented Jan 24, 2024

@popy2k14 how do you send F5 to the browser?

@sigalou
Copy link

sigalou commented Jan 24, 2024

I also have flow losses after an hour and a half, I don't know why (it's since one of the last updates). I would like to be able to restart the flow if it gets stuck, like an F5 would do. THANKS

@popy2k14
Copy link
Author

popy2k14 commented Jan 24, 2024

@sigalou here is my complete setup incl. refresh after 4 seconds after turning on the monitor.

HA thread: https://community.home-assistant.io/t/replaced-magicmirror-with-lovelace-dashboard/600905/11?u=popy

But i think it should be solved in WebRTC/go2rtc.

@AlexxIT AlexxIT added the question Further information is requested label Feb 17, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 17, 2024

What go2rtc version you using? v1.8.5 has a bug with reconnection feature

@popy2k14
Copy link
Author

Sure I have the HA addon go2rtc version 1.8.5.

Any hints when there will be an release so we can test if the issue is fixed for us?

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 17, 2024

Don't know about release. This problem fixed in the go2rtc latest master version

@popy2k14
Copy link
Author

Ok, thx

@ccie11827
Copy link

My problem seems to be fixed in the latest master version :-)

@popy2k14
Copy link
Author

thx for the info.
Would be nice if we can get an release, so everyone with supervised HA installations can benefit from the fix.

@popy2k14
Copy link
Author

popy2k14 commented Mar 1, 2024

Tested the hardware master of go2rtc and also for me it seems stable for the last few days.

Any info when next stable will be released?

thx

@AlexxIT AlexxIT self-assigned this Apr 7, 2024
@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels Apr 7, 2024
@AlexxIT AlexxIT added this to the v3.5.2 milestone Apr 7, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 7, 2024

@AlexxIT AlexxIT closed this as completed Apr 7, 2024
@popy2k14
Copy link
Author

popy2k14 commented Apr 7, 2024

thx for the release (with downgraded go2rtc).
Installed now and see how it goes.

Any hint's when a fixed version of go2rtc is realesed?
https://github.com/AlexxIT/go2rtc/releases

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 8, 2024

When I'll have free time for this project. Made six releases in the last three days https://t.me/AlexxIT_Releases

@popy2k14
Copy link
Author

popy2k14 commented Apr 8, 2024

Wow, thx for your work.
Take your time.

@KaelKael
Copy link

KaelKael commented Oct 10, 2024

Hello,
@AlexxIT thanks for your work. I'm starting to use WebRTC for my Tapo camera.
The current bug of the thread blocked the go2rtc dependency of WebRTC to the version 1.8.5.
Since, there was some go2rtc version released. Is it planned to update the go2rtc version in WebRTC ?
I'm currently subject to the bug AlexxIT/go2rtc#1008 potentially corrected in 1.9.4 version.
Thanks
EDIT: I saw that update seems to already be done in commit 8450369 My question is more "Is it possible to publish last update if project is enough stable ?

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 10, 2024

The release will be published when all planned issues will be closed.
You can install the master version at any time without waiting.

@KaelKael
Copy link

Thanks for your answer. I'm still a little new on HACS. I didn't thought to use the master branch in it.
I'll think about it even if I usually prefer to use "fix" version.
Good luck in your work !

@popy2k14
Copy link
Author

@AlexxIT The issue is back for me since (i think) update v3.6.0 - 2024-10-12 a few days ago.
Up until 3.6.0 it was stable.

Is it possible that the update to go2rtc 1.9.4 causes the issue for me?
How can i help you debug the issue?

I am have now downgraded to v3.5.2 - 2024-04-07 and recheck the coming days if the issue is gone.

thx

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 15, 2024

1.9.4 don't have reconnection bug. But it may have some other bugs...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants