How To Embed Youtube Video on my page?

Is it possible to embed a YouTube video to my page and play the sound of it only?

  • Answer:

    As far as i know, the only way is to hide the video, for example like this: 1)Get the code of the embed video, let it be: <iframe width="560" height="315" src="//www.youtube.com/embed/9bZkp7q19f0?rel=0" frameborder="0" allowfullscreen></iframe> 2)Change the video height to 8% and add autohide=0 (parameter, prevents the video controls from hiding) in the code like this: <iframe width="560" height="8%" src="//www.youtube.com/embed/9bZkp7q19f0?rel=0&autohide=0" frameborder="0" allowfullscreen></iframe>   Video will still play but you will not see it because of the resolution and control bar. The only thing you will see is a control bar.  In the same way you can also add to the link parameters like these: fs=0  Prevents the fullscreen button from displaying. modestbranding=1  Prevents a YouTube logo from displaying. So eventually it will look like this: <iframe width="560" height="8%" src="//www.youtube.com/embed/9bZkp7q19f0?rel=0&autohide=0&fs=0&modestbranding=1" frameborder="0" allowfullscreen></iframe>

Ajaj Kojej at Quora Visit the source

Was this solution helpful to you?

Other answers

Not yet. Googl has said that they might do it soon.

Samar Singla

I never tried it. But I have a suggestion for you. Embed the YouTube video in your Web page. Once the DOM gets loaded, through Javascript apply the appropriate CSS to make the video player invisible or hidden and then play the video. The only backdrop of this method is, the high bandwidth utilization. Though user is not watching the video, complete video will be streamed. An alternative approach could be, download the YouTube video using tools like IDM and extract the audio content by using some third party tools. Then using the 'audio' tag, you can embed the extracted audio content into your Web page. Please note that, downloading the YouTube videos is against the policies of YouTube. So, I don't recommend this method. Use it at your own risk. Good luck.

Prabhakar Bikkaneti

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.