Playback on other Websites has been disabled by the video owner
I am getting "Playback on other Websites has been disabled by the video owner" when trying to play a video that is embedded in a website. I can get to the website just fine but when I try to play a video I get the error.
If you get this message, then the uploader of the original youtube has disabled embedding onto third-party sites like android apps. Certain videos have a domain-level whitelist or blacklist applied to them. This is done at the discretion of the content owner. If there is a whitelist or a blacklist, and the domain of the embedding site can't be determined, then the default behavior is to block playback. In your request header for the youtube video, set Referer to the domain in which you intend to be making the call from, (for ex. the domain of your app's corresponding website). If you don't have a domain, you could easily write some other domain, and that might work too.
If you own the video to enable playback:
- Visit your Video Manager.
- Find the video you'd like to change and click Edit.
- Click Advanced Settings under the video.
- Check the Allow Embedding checkbox under the "Distribution Options" section.
- Click Save changes at the bottom of the page
Is this happening on all websites or just one? If it is just on one website then, unfortunately, that means that the video owner did not check the "Allow Embedding" checkbox under video details on YouTube. If you are the video owner you can do this, if not you would have to get the video owner to check this. It's a fairly common mistake depending on the type of website.