Shazam now allows you to identify in-app music while wearing headphones. This feature is tailored toward TikTok, Instagram, and YouTube users who need a convenient way to identify songs. It works with wired or Bluetooth headphones on iOS and Android.
Source : Shazam Can Now Identify the Music in Your Headphones