Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to embed certain videos from youtube on my site but I only need the audio from them so I want to set the iframe to display:none and use the api to control the play and pause with custom buttons. Is this breaking any rules?

share|improve this question

marked as duplicate by Lèse majesté, Simon Hayter, Stephen Ostermiller, John Conde Mar 20 '13 at 23:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Think about it. Why would Youtube let you use its content and infrastructure if they are hidden? The ads will not show and neither will the suggest videos at the end to direct visitors back to more stuff Youtube. You may have a great idea to use the audio for but unless it also benefits them, expect to be on your own.

While this is the my intuition, here is the official statement from Youtube's term of service:

If you use the Embeddable Player on your website, you may not modify, build upon, or block any portion or functionality of the Embeddable Player, including but not limited to links back to the YouTube website.

share|improve this answer

Setting the display:none will not work as the browser will not start the plugin nor the audio.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.