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

Frigate lovelace card doesn't play clips #55

Closed
latum opened this issue Sep 5, 2021 · 19 comments · Fixed by #58
Closed

Frigate lovelace card doesn't play clips #55

latum opened this issue Sep 5, 2021 · 19 comments · Fixed by #58
Labels
bug Something isn't working

Comments

@latum
Copy link

latum commented Sep 5, 2021

Checklist:

  • [x ] I updated to the latest version available
  • [x ] I cleared the cache of my browser

Release with the issue:
v1.0.0

Last working release (if known):
v0.9 I believe

Browser and Operating System:
Simplest way to replicate is via Chrome browser on Windows 10 but I can confirm that the same behavior occurs on Edge as well as iOS HA app.

Description of problem:
opening the clips gallery from the card. I can see the clips but selecting one results in a player window with the navigation circles (previous and next clip images) but a grey background and no movie playing. After 30 seconds or so the card reverts to the live view which is my default.
image

Javascript errors shown in the web inspector (if applicable):
I don't see any Javascript errors.

Additional information:
Running latest frigate integration and frigate NVR add-on

@latum latum added the bug Something isn't working label Sep 5, 2021
@latum
Copy link
Author

latum commented Sep 6, 2021

I can confirm that the frigate clips gallery works correctly from the media browser

@dermotduffy
Copy link
Owner

dermotduffy commented Sep 6, 2021

Thanks for the helping debug @latum !

Don't suppose it plays when you click the play icon? If yes, it might be blakeblackshear/frigate#1637 (see the screenshot in there to compare with what you see).

If not, you said it does play from the Home Assistant Media Browser, is this for the very same clip?

Do you see anything logged in the Javascript console? (Try a fresh card reload, and try to play a clip and see if anything interesting gets logged? You can see the console by pressing F12 in Chrome)

@latum
Copy link
Author

latum commented Sep 6, 2021

No problem @dermotduffy I'm just stoked that this is available for HA. Answers:

  1. No it does not play when I click on the arrow. The black buffering circle rotates and the play icon changes to pause but the background remains grey. Hovering over the 3 dots does show the date/time as well as duration of the actual clip plus percentage confidence of detection
  2. Yes, the exact same clip plays from the media Browser -> Frigate -> Clips and shows the same date/time, duration and confidence

@elderec
Copy link

elderec commented Sep 6, 2021

I'm experiencing same symptoms. Console shows:

Uncaught DOMException: Failed to execute 'appendBuffer' on 'SourceBuffer': This SourceBuffer has been removed from the parent media source. at WebSocket.ws.onmessage (https://home.contoso.com/webrtc/webrtc-camera.js?v2.0.2:88:34) ws.onmessage @ webrtc-camera.js?v2.0.2:88

@dermotduffy
Copy link
Owner

dermotduffy commented Sep 6, 2021

@elderec That console message is a red herring. As you can see in the text, it's from WebRTC not the Frigate card. I ran into that myself, it's a harmless error message tha WebRTC is logging. It's actually already been fixed in the WebRTC code, they just haven't done a new release yet.

@elderec Sounds like the clips are not playing for you either. Even when you get the failed clip load, if you click play manually does it work or still fails as @latum described?

@latum or @elderec :

  • In Home Assistant, can you go `Configuration -> Integrations -> Frigate -> Click "[N] devices" -> Give me the model number it shows? I take it you are using Home Assistant OS, with the Frigate Addon?

@latum
Copy link
Author

latum commented Sep 6, 2021

Here's the Device info: 1.1.2/0.8.4-5043040

@latum
Copy link
Author

latum commented Sep 6, 2021

and yes, HA OS with Frigate Addon

@elderec
Copy link

elderec commented Sep 6, 2021

@dermotduffy - No, still fails when manually clicking play. It fails as @latum described.

Device Info: 1.1.2/0.8.4-5043040

Using HAS OS on rpi4, however Frigate is hosted on a separate machine.

@Haloooch
Copy link

Haloooch commented Sep 6, 2021

I'm getting the same issue:

1.1.2/0.8.4-5043040
HA OS with Frigate addon

@dermotduffy
Copy link
Owner

dermotduffy commented Sep 6, 2021

I'm noticing a pattern here, all 1.1.2/0.8.4-5043040 ;-) Let me set up that combo and see if I can reproduce.

Update: I can reproduce this using that version combination. Investigating...

@dermotduffy
Copy link
Owner

Figured it out, fairly confident it'll be fixed for you all. I'll do a new build by tomorrow for you to test it out. This would only have been an issue for users of Frigate < 0.9.0 .

@dermotduffy
Copy link
Owner

Hello all,

There's a new pre-release that I believes addresses this issue (v1.0.1): https://github.com/dermotduffy/frigate-hass-card/releases/tag/v1.0.1

Let me know if it works for you?

@s24dor
Copy link

s24dor commented Sep 8, 2021

Hi Dermot, the clips are playing within the card, I haven't checked the rest of the changes, but so far so good.

Thanks 👍

@Haloooch
Copy link

Haloooch commented Sep 8, 2021

Same, confirmed clips are now playing. But not only that, they load very very quickly. I want expecting it to be so smooth, thanks!

@s24dor
Copy link

s24dor commented Sep 8, 2021

I just tested outside my home network and thumbnails load but clips do not play

@Haloooch
Copy link

Haloooch commented Sep 8, 2021

@s24dor, I've just tested and can confirm they are playing for me outside my network. No idea why we are seeing different things.

@latum
Copy link
Author

latum commented Sep 8, 2021

I can also confirm that the clips play when using the external (Nabu Casa) URL to access HA. Also that they start very quickly. Well done, thank you very much! Also appreciate the options for the next and previous controls.

@s24dor
Copy link

s24dor commented Sep 8, 2021

Forget my last message, it seems the event that i was trying to view a clip that had just deleted after the fifth day and was no longer available.

I have since got the card working remotely on another machine.

Thanks again Dermot

@dermotduffy
Copy link
Owner

Fantastic. Thank you all for testing.

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

Successfully merging a pull request may close this issue.

5 participants