Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I recently made a PHP gallery that lists YouTube video files off a channel/user. The problem is that some videos won't embed, because of copyright.

Do you have any alternatives in mind?

share|improve this question
What exactly are you trying to fix and accomplish? – dnbrv Apr 29 '12 at 18:02
A video gallery on a webpage. But youtube won't let me embed some videos due to copyright. – ioannis Apr 29 '12 at 19:30
So what do you want to do with those videos that aren't allowed to be embedded? Do you want to skip them or what? – dnbrv Apr 29 '12 at 19:43
Trying to find an alternative way of hosting them, either use another service which I could easily make a similar gallery- or a workaround so I can embed/play these videos. – ioannis Apr 29 '12 at 20:43
Uhm. Do you realize that if something has copyright restrictions on broadcast options, removing or going around those restrictions is a violation of copyright? – dnbrv Apr 29 '12 at 20:57
show 2 more comments

closed as not a real question by ChrisF Jul 28 '12 at 21:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

2 Answers

up vote 0 down vote accepted

As @dnbrv mentioned, if there is copyright attached to videos you will not be able to play them outside of YouTube.

it is restricted from playback on certain sites

Means the content owners have given YouTube permission to play content on YouTube and other sites specified by the owner (where the owner is either the owner of the content, e.g. music or the video itself). Your site is not in this selection so embedding will be disabled.

There is no way to circumvent this and if there is, you would be in violation.

Consider checking for if a video is embeddable and skip videos that are not embeddable or show an icon (e.g. Only viewable on YouTube)

share|improve this answer

I think the reason they don’t embed is because embedding is disabled by the user who uploaded the respective video(s).

The option to embed does not appear

If the video owner has disabled embedding, you'll see the message, Embedding disabled by request when you click the Embed button and you will not be able to embed their video

From YouTube help page on embedding videos.

share|improve this answer
It actually says that the video is copyrighted by EMI/other and cannot be embedded on some domains. – ioannis Apr 29 '12 at 19:30
@ioannis I think it’s the same thing, but maybe with some finer control details—domain control and such. – Alex Apr 29 '12 at 20:00

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