What to do if your you tube video doesn't appear in Drupal?

You have just uploaded a video and it doesn't appear properly as one of the examples below.

1st example

There are chances, the URL you have pasted looks like that:

https://youtu.be/X2yZeRiw3_U

Drupal doesn't recognize this kind of URL and this is the reason why you get a grey screen.

A youtube URL should always start like this:

https://www.youtube.com/watch?v=

In our example:

https://www.youtube.com/watch?v=X2yZeRiw3_U

2nd Example

There are chances, the URL you have pasted looks like one of these below:

1) https://www.youtube.com/watch?v=Wtq12PCp9OY&list=PL8uB6zI647TsyomGaVohq0pkGlcwO5q7U

Drupal doesn't recognize this kind of URL and this is the reason why you get a back screen

A youtube URL should always have only one ID

In our example:

https://www.youtube.com/watch?v=Wtq12PCp9OY

2) https://www.youtube.com/watch?v=I0aOzfHt4wc&t

&t should be removed from the URL

P.S. We have noticed that unlisted videos do also experience some issues.


How did we do?


MarTech Academy (opens in a new tab)

Powered by HelpDocs (opens in a new tab)