2021 and problem still exists.
Im an ios developer so I’ve debugged some things.
Devices:
Apple TV non-4K release then beta TvOS
Apple TV 4K latest beta
Receivers:
Boston Acoustics legacy AirPlay speaker
Same Boston speaker in Bluetooth mode
Apple Legacy Airport express
HomePod
AirPods
Any combination with an AirPlay v1 device, the audio plays for a blip and stops.
That is to say, the HomePod and AirPods and Bluetooth works fine but the older third-party speaker an airport express receiver exhibit this audio glitch.
I’ve reinstalled the YouTube app and reset all data to no avail.
Only the YouTube app is effected.
Hulu, Netflix, Plex, CuriosityStream, Spotify all tested fine.
- Changing bitrate - no change
- forcing Apple TV audio mix down to stereo - no change; mono no change.
——
it’s my conclusion this is 100% YouTube code. That makes absolutely no sense to me because AirPlay is an operating system level feature. Yes, an app can configure certain options to be available or not such as picture and picture support, if airplay it allowed at all for videos etc. but beyond that configuration stage, audio buffers are just sent to coreaudio if they’re using their own code for decompression, or if they’re using the Apple video AVPlayer apis the audio is handled automagically.
If they’re serving H264 or H265 they absolutely should just use AV player. It allows completely custom controls and more, there’s no reason to write your own decoder/demuxer But with Google I wouldn’t be surprised if they insist on doing everything themselves.
I’ve written a lot of core audio Code for tvOS iOS and Mac including compatibility layers for the Xamarian and react native. I am absolutely baffled how you can actually break this in an app specifically in such an odd way but nothing with Google and iOS can surprise me anymore.
I’m almost impressed on how badly this is broken. Almost as impressed by the fact they completely are ignoring it for months now.
you know what does work all day enough though, AirPlay from iPhone YouTube video to a tvOS device but the audio to an AirPlay v1 is perfectly fine, but annoyingly laggy 🤦♂️