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?
|show 2 more comments|
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, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
As @dnbrv mentioned, if there is copyright attached to videos you will not be able to play them outside of YouTube.
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)
I think the reason they don’t embed is because embedding is disabled by the user who uploaded the respective video(s).
From YouTube help page on embedding videos.