পৃষ্ঠাসমূহ

.

Search Your Article

Total Pageviews

Saturday, December 24, 2016

How to Embed YouTube as an Audio Player



How do you embed the audio portion of any YouTube video into your website? An easy option would be that you convert the YouTube video into an MP3 file and upload it to an audio hosting site like Soundcloud. This will work but
YouTube is very likely to have a problem with your approach due to copyright issues.
There’s a simpler approach as well that uses the official YouTube API and requires no file conversion.
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.
Check out this live demo. It may resemble an embedded audio player but there’s actually this YouTube video that’s playing in the background.

No comments:

Post a Comment