If you want to find a song from a video playing on your phone, you can use the Pop-Up mode on Android or Shazam functionality built into the iPhone. On Android, go to Shazam > Library > Settings and enable Shazam from Pop-Up. You'll need to then follow the instructions to allow Shazam to display over other apps.