Question

2 Followers
0

Overriding reembed for specific videos

Is there a way to override reembed for specific videos? Recently we found out that some youtube owners, while they allow embedding, they don't allow it through third party players.

There's a message "The owner of the requested video does not allow this video to be played in embedded players" and a link to watch the video on youtube.

Andreas Antonopoulos

Official answer

Avatar

Hi Andreas,

yes you can. All you need to do is add the following attribute to the original embed iframe:
data-reembed="{ 'no_replace': 1 }"

so the embed will end up looking something like this:
<iframe src="//www.youtube.com..." width="600" height="400" data-reembed="{ 'no_replace': 1 }">

Dimitrios Elissaios

Please sign in to add your answer.