
Now playing has been a thing since the pixel 3. I think it works by having an on device set of hashes for the starts of songs and listens for them snippets to then show it on your lock screen for what would be the duration of the song or until it hears another.










Shazam is likely a bit more complicated and accurate since you’re sending data to an online service and you actively check a song at any time.