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

I've been working on a music web application that so far always has a prominently displayed YouTube video that is the source of the music.

Is there anything in the terms of service for YouTube that say I'm not allowed to hide the player? I'd still let the user control everything via the JavaScript api, and I'd hide it with something like display: none; or something. Is that illegal?

share|improve this question
up vote 2 down vote accepted

I'm not a lawyer but I think "points 8/9/14 section II - Prohibitions" of YouTube TOS suggest you are violating them.

8.separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;

9.promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;

14.use a video player smaller than the minimum video player size set forth in the YouTube API documentation and specifications.

I think it makes also sense, some videos shows advertises, so it makes sense their TOS prohibits to hide the video.

share|improve this answer
Not to mention it's hugely inefficient to both stream and render a video just for the audio component. It's the same as having the browser download a 1024x1024 image just for it to be shown as a 32x32 icon. – Lèse majesté Feb 28 '13 at 10:12

I haven't pored over their terms of service to see if it would violate them, but I know that it has been done in the past. Here is a site that describes how to modify their embed code to only show the audio controls: http://rcdewebmasters.wordpress.com/2012/04/19/embed-audio-only-youtube-video/ To make it happen you just need to set the height of the iframe to 24 pixels and add parameters to make sure the controls always show up.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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