WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

[Feature Request] Ability to restart streaming after stopped

Open Perlnx opened this issue 3 years ago • 14 comments

Hello, S__285425668

I using WebRTC with FullyKiosk browser on tablet. Network connection to HA server using wired ethernet.

Sometime WebRTC stop streaming and need to refresh Lovelace to restart WebRTC although no connection drop from wired. Is it possible to add ability to restart streaming after it stopped or add timeout to reset connection after error occurred ?

Perlnx avatar Jun 14 '21 08:06 Perlnx

It should use auto restart already

AlexxIT avatar Jun 14 '21 16:06 AlexxIT

First time when I create this topic. My camera entities configure using UDP transport and I though this can cause interrupt when streaming. Now I changed to TCP, Streaming seem smoother but it just suddenly stop on 17:00

https://www.youtube.com/watch?v=eOaaFjEG0hs I record video to show you It not restart automatically. It just spinning indicator forever.

As you saw uptime. It work well for a day without stop. And there are no network & camera connectivity issue from HA on 17:00

Capture

Perlnx avatar Jun 15 '21 11:06 Perlnx

Update: Now It's 19:06 and still not reset.

S__285491204

Perlnx avatar Jun 15 '21 12:06 Perlnx

You can check debug logs for more info https://github.com/AlexxIT/WebRTC#debug

AlexxIT avatar Jun 15 '21 12:06 AlexxIT

Hello, Just not working today on 19:30. S__285548548

Debug log already turn on but no relate error about WebRTC.

logger Capture

Do you have any idea ?

Perlnx avatar Jun 16 '21 13:06 Perlnx

Button "Load full log" under this window

AlexxIT avatar Jun 16 '21 13:06 AlexxIT

Sorry I didn't notice that. Here full logs.

2021-06-16_20-45-00

Perlnx avatar Jun 16 '21 13:06 Perlnx

This is error from main Home Assistant code. I don't know if it because of WebRTC. But seems like it breaks WebRTC component.

AlexxIT avatar Jun 16 '21 14:06 AlexxIT

The lasted error from supervisor It came from when I update supervisor today. Not sure about EOF message. Is that relate to keyframe ? Since my substream using default 50 with framerate 20.

Capture

I will try to restart HA to clear log and collect info again tomorrow.

Perlnx avatar Jun 16 '21 15:06 Perlnx

websocket EOF it is normal situation. Lovelace breakes connection to server when WebRTC starts streaming.

AlexxIT avatar Jun 17 '21 07:06 AlexxIT

I see, Can you tell me which line that Lovelace breaks connection. So I will ask the other next.

Perlnx avatar Jun 17 '21 10:06 Perlnx

Today it stopped on 22:09. S__285679618

This is HA log (I didn't do anything with HA this day) 2021-06-17_22-22-31

Seem like It always stopped after 1 day of streaming.

Perlnx avatar Jun 17 '21 15:06 Perlnx

I am experiencing this problem too. Every once in a while the image gets lost on my dashboard. Refreshing the screen reloads the camera correctly. image

majdzik84 avatar Jul 10 '21 11:07 majdzik84

Sorry to hear this. I'm give up and roll back to picture entity instead. Since the debug log can't find anything relate to this and I cannot fix this by myself.

Actually I just need ability to auto refresh playback after message Error: No Video appear.

Perlnx avatar Jul 10 '21 12:07 Perlnx