Open sy6sy2 opened 4 years ago
I believe you wanted to write that our version is only AirPlay 1 capable :)
AVPlayer
we need to follow the guide "Implementing Flexible Enhanced Buffering for Your Content" and use AVSampleBufferAudioRenderer()
and AVSampleBufferRenderSynchronizer()
but I don't know where to put this stuff... :-/All tvOS app that not use the native tvOS video player OR use the old AirPlay 1 AVAudioSession implementation suffer of the bug describe here.
Because we do not use the native tvOS video player and because we use AirPlay 1/AVAudioSession we also have this bug. (And I can reproduce it every day...).
The Channels app also had this bug, and tmm1, a dev of this app, suggest to use the new audio API (AVSampleBufferAudioRenderer
) in order to fix this Apple TV issue.
So, by adding AirPlay 2 support we will also fix this issue for all people using and AirPlay speaker or an HomePod.
You can easily reproduce this issue with the YouTube app and the Spotify app....
Our current version is only AirPlay 1 capable. MrMC 3.9.1 partial enable AirPlay 2 support, see https://github.com/MrMC/mrmc/blob/b23efd72510863eaa46567b26b4abc02005f3a29/xbmc/platform/darwin/tvos/MainApplication.mm#L120