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

AirPlay via HomePod out of sync / not working #56

Open
ersan opened this issue Jun 4, 2018 · 4 comments
Open

AirPlay via HomePod out of sync / not working #56

ersan opened this issue Jun 4, 2018 · 4 comments

Comments

@ersan
Copy link

ersan commented Jun 4, 2018

I posted about this here https://forum.mrmc.tv/viewtopic.php?f=6&t=4097&p=18361#p18361

The audio on HomePod would always drift out of sync when using MrMC or Kodi, but before it would take 6 or 7 hours before it started happening and it would just require a reconnect to the HomePod to fix it. The recent tvOS/HomePod/AirPlay 2 update causes more problems. Now it takes about an hour before it's noticeably out of sync and it can only be fixed by rebooting the Apple TV and/or the HomePod.

This doesn't affect other applications that use the Apple TV native player (The Plex app works fine for example). I don't know if any of the audio sync is handled by MrMC or if it's all done by the Apple API's, but it isn't working.

@ersan
Copy link
Author

ersan commented Jun 10, 2018

I'm not able to get it to work via AirPlay at all any more - no sound comes out of the HomePod... Native players still working fine.

@ersan
Copy link
Author

ersan commented Jun 10, 2018

Debug log: https://pastebin.com/wfDYRCgb

@ersan ersan changed the title AirPlay via HomePod out of sync AirPlay via HomePod out of sync / not working Jun 10, 2018
@ersan
Copy link
Author

ersan commented Jun 12, 2018

I ended up switching the ATV 4th generation I was using for a 4K to see if it worked any better. It fixed the no sound and I believe the sync problem, but now any time I turn the TV off and back on (putting it to sleep and waking it up has the same problem) MrMC will play audio over HDMI instead of AirPlay.

It won't go back to using AirPlay until I disconnect and reconnect the speaker, and it is lost anytime the TV is turned off. Again, the native player Plex app (and other native players) seem to work fine - it starts playing to the AirPlay speaker no matter what, and persists through TV power off/on.

Side note: This issue seems to exist in Infuse as well.

Log after TV is power cycled: https://pastebin.com/SUSTe1uP

I have to choose between AirPlay and MrMC for now, I guess. It's kind of a mess right now.

@ersan
Copy link
Author

ersan commented Jun 18, 2018

Not sure if it will fix my issue but it’s probably worth implementing AirPlay 2/enhanced buffering (if possible)?
https://developer.apple.com/documentation/avfoundation/airplay_2/getting_airplay_2_into_your_app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant