AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.48k stars 174 forks source link

No Sound and Auto-Start Failure on Safari (macOS 14/14.1) After Update to 3.4.0 #590

Open dsimop opened 11 months ago

dsimop commented 11 months ago

Issue Summary: After updating to version 3.4.0, I experience issues when accessing camera feeds on Safari (macOS 14). Specifically, when using Safari on macOS 14.1, two different cameras (Tapo and Reolink) exhibit issues related to audio playback and auto-start behavior.

Steps to Reproduce:

  1. Update the application to version 3.4.0.
  2. Access the camera feeds using Safari on macOS 14.1.
  3. Observe the following issues:
  4. Mode automatically set to: MSE
  5. No sound is heard for both the Tapo and Reolink cameras.
  6. The Tapo camera feed does not auto-start as it did in previous versions, requiring the user to manually click the play button.

Expected Behavior:

Actual Behavior:

Additional Information: On the iOS Mobile App, the camera feeds work as expected. The mode is automatically set to HLS, and no sound issues are reported. This issue appears to be specific to Safari on macOS 14.1. Probably because of the auto setup of the mode to MSE.

AlexxIT commented 1 week ago

Safari has really terrible logic for dealing with the video player. I don't know how to beat it.