Article: http://sarmadgardezi.com/?p=1000
For more tech guides: https://sarmadgardezi.com/blog
Learn how to turn the standard YouTube video player into an audio player and embed any YouTube video on your website as any other audio file.
Article: http://sarmadgardezi.com/?p=1000
Twitter: / @sarmadgardezi
DEMO: https://output.jsbin.com/hicales
MORE TECH GUIDES: http://sarmadgardezi.com/blog/
SUMMARY:
You can embed any YouTube video in your web pages and visitors on your site will be able to play and pause the video audio with a simple click. With this technique, you can also use a YouTube video as background audio that runs in a loop.
It takes just one step to embed a YouTube audio. Open any YouTube video and make a note of the YouTube Video ID you can get it from any youtube video URL (a string of 11 characters).
Next copy-paste the code below anywhere on your website and replace VIDEO_ID with actual ID of your YouTube video.