twrecked / hass-aarlo

Asynchronous Arlo Component for Home Assistant
GNU Lesser General Public License v3.0
399 stars 79 forks source link

Live stream is unavailable when recording or streaming on another device #900

Open m-masseli opened 8 months ago

m-masseli commented 8 months ago

When motion triggers recording, is it impossible to start live streaming at same time or is there something wrong with my configuration?

What I would like to achieve, is a live stream on my home assistant dashboard when motion is detected. Live stream works fine when there is no other activity on camera. But if camera is already recording or even if I start a live stream first on my mobile Arlo app, no live stream can be started on home assistant screen anymore.

Is this normal or have I messed up something in my configuration? If I start live stream on home assistant first, it starts fine and I can then start another simultaneous live stream from same camera on my Arlo mobile app without any problems. But doesn't work the other way round.

Chrome inspector shows status 5022 on GET request when this happens.

jedi787 commented 8 months ago

I'm having a similar problem, using Arlo Essential Outdoor Cameras. In my case whenever I'm live streaming and a motion record is triggered the live streaming freezes. Won't happen if cameras are not armed.

Phoenix-DH commented 8 months ago

Same issue here. When recording and I want to see the live view on the card, no way. I have this in a popup. When recording is finished there is no issue in the same popup window to do a live streaming.

And I have the following error:

Logger: homeassistant.components.camera Source: components/camera/init.py:897 integration: Camera (documentation, issues) First occurred: 8:23:22 PM (1 occurrences) Last logged: 8:23:22 PM

Error requesting stream: camera.aarlo_hof does not support play stream service

jedi787 commented 6 months ago

Any luck with this problem / issue?

twrecked commented 6 months ago

It's a bug. When the record starts we record a local user of remote which stops us getting a stream. It looks like I no longer need that piece of code.

Interestingly, I'm not sure it will work with record, I tried it on the real Arlo website and it failed to start the stream. But if another device starts the stream we are good.

I'll see what changes I can make here.

edit: It looks like the record should work, I'm seeing &watchalong=true tagged on to the back of the URL. My code fails the same way as the Arlo website so that's a good sign.

edit: For streaming from stream started on another device I will need to modify the glance card. It currently tries to stop the stream.