question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Videos not displayed/not playing on Safari iOS/MacOS

See original GitHub issue

Checklist:

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

Release with the issue: 4.0

Last working release (if known): n/a

Browser and Operating System: Safari 16 on MacOS, Safari on iOS 16

Description of problem: Sometimes (a decent percentage) videos are not playing when the card is loading or when the card refreshed/swaps to another camera. My guess is this is related to these Javascript errors which might be some Safari specific behavior and have something to do with how video+audio is being loaded in relation to user interactions. Usually clicking on the card makes the video play in these circumstances but it would of course be nice it the card would play the video right away and not rely on a user interaction for playback. It doesn’t happen all the time, but quite often.

Potentially for the same reason often the Thumbnails bar is missing images of the clips. A random number of images of clips might be missing (see below screenshot where the first one on the left is missing), sometimes more, sometimes less. Clicking on the blank spot will still take you to the playback of the clip, so the data seems to be there, just the image is not being displayed.

Javascript errors shown in the web inspector (if applicable):

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
(anonyme Funktion)
rejectPromise
play
play — frigate-hass-card.js:401:281
play — frigate-hass-card.js:419:292
play — frigate-hass-card.js:551:600
play — frigate-hass-card.js:520:755
l — frigate-hass-card.js:286:2731
autoPlay — frigate-hass-card.js:307:2894
autoPlay
dispatchEvent
Dg — frigate-hass-card.js:107:115622
e_ — frigate-hass-card.js:271:25983
_storeMediaLoadedInfo — frigate-hass-card.js:307:5957
_storeMediaLoadedInfo
handleEvent — frigate-hass-card.js:17:7372
dispatchEvent
Dg — frigate-hass-card.js:107:115622
aw — frigate-hass-card.js:307:1443
lw — frigate-hass-card.js:307:1507
(anonyme Funktion) — frigate-hass-card.js:480
handleEvent — frigate-hass-card.js:17:7372
dispatchEvent
Dg — frigate-hass-card.js:107:115622
e_ — frigate-hass-card.js:271:25983
t_ — frigate-hass-card.js:271:25958
(anonyme Funktion) — frigate-hass-card.js:274
handleEvent — frigate-hass-card.js:17:7372
play — frigate-hass-card.js:401:281

Additional information: Bildschirmfoto 2022-09-26 um 17 58 35

Bildschirmfoto 2022-09-26 um 18 04 06

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
AndLindemanncommented, Sep 29, 2022

Yeah, saw your commit. I’ll be away over the weekend anyway, so I’ll probably just wait for the 4.1 release. Thanks for your help and your effort on this, the card turned out to be really good. 😃

0reactions
dermotduffycommented, Sep 29, 2022

OK! I’m going to close this for now to clean up the issues. If you try 4.1 and it still doesn’t work, definitely re-open. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix: Safari not Playing Videos on Mac? - BrowserHow
Launch the Safari browser on your computer. · Click on the Preferences option from the menu bar. · Switch to the Extensions tab....
Read more >
How To Fix Safari Videos Black Screen Bug (iOS 15 & iPadOS ...
2. Disable AdBlockers · Open Settings and scroll for Safari. · Go for Extensions. · Disable any active Content Blockers. (like Adblock Plus, ......
Read more >
Videos not working on safari - Apple Support Communities
Videos not working on safari. Whenever I try to play any video on Safari it just shows a blank black screen, even if...
Read more >
Videos Show Black Screen in Safari on iPhone - macReports
Video screen is black with sound issue · Ensure that your iPhone is up to date. If not, update to the latest version...
Read more >
I'm having issues watching video on Safari. How can I fix this?
Click Safari, then 'Settings for this website'; Select the Auto-Play section within the pop-up and from the drop-down menu, select 'Allow All Auto-Play'....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found