Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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é, bybe, 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.

add comment

2 Answers

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

share|improve this answer
add comment

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
add comment

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