I'm building a small quiz application (something like "what song is this?") with embedded YouTube videos. But the questions are too easy if you can see the video (the answer could be in its title). So my idea is to hide the player with a div so you can hear the video but not see it. The div disappears and the video becomes visible as soon as you pick an answer or click on "Show video".

Screenshot of what I want to do

This is optional, before starting the quiz you can check an option named "hide the videos to make things harder", and if you don't the videos are normally visible.

Now, hiding the embedded video player sounds like something that could violate YouTube terms of service, but I can't really find information about this. Any thoughts?

1 Answer 1


The YouTube TOS don't say anything about this, the developer TOS and specifically the developer policies and minimum required functionality do though. The latter of which says:

You must not display overlays, frames, or other visual elements in front of any part of a YouTube embedded player, including player controls. Similarly, you must not use overlays, frames or other visual elements to obscure any part of an embedded player, including player controls.

  • That's what I suspected. Thank you for your answer.
    – Mutre
    Jan 20, 2021 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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