I don't know the exact limit but a tiny sample is allowed as part of another presentation. The YouTuber Techmoan has mentioned and respects these limits and plays audio during his equipment tests.
Playing full songs without a license can get your content (or even your domain or hosting) yanked over a DMCA violation report. Large infractions can result in lawsuits from media rights holders.