Obsidian YouTube Link not working


I have tried the new way to include YouTube video within Obsidian. However, I am getting an empty dark placement where the video should be:


If I use the “embeded” option of the video the result is the next one:


I am using the next HTML with CSS (not finished) in the meantime but it is not perfect the visualization as you can see:

HTML & CSS code used as workaround # CSS ```css .youtube-container{ position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }

.youtube-container iframe{
left: 0;
width: 100%;
height: 100%;
/* margin: auto;
width: 67%;
clip-path: inset(20px 50px 10px 0 round 50px); */

.shortcut-container {
margin: auto;
width: 67%;
height: 820px;
border: 3px solid #73AD21;
/* padding: 10px; */


<div class="youtube-container"><iframe width="560" height="915" src="https://www.youtube.com/watch?v=fTL2FDSYlEc?rel=0&autoplay=0&mute=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></div>

Someone knows if I am doing something wrong or is it related to the feature just released? The video in this case is public and the video is easily accesible from the normal URL and the embedded URL.

Best regards,
Pedro Reyes

1 Like

Not all videos can be embedded.

Just curious why that is. Is this a youtube issue or something with the implementation inside obsidian?

It’s not an obsidian problem. Authors of videos can disable embeding.


Hello @WhiteNoise ,

I’d say it is in fact an obsidian problem.

Here both videos I am showing are with the “embeddded permission” enabled. However, one is displayed and the other no as you can see:

I am the author of both videos. Proof of it:

Permitir inserción means “Allow embedding” in Spanish.

Best regards,
Pedro Reyes.
CC: @AngelsOfDarkness

ok I will double check

FWIW, I tried these links:

![Baile con Noe - 20230531 - YouTube](https://youtu.be/fTL2FDSYlEc)

![Baile con Evelyn 🥰 2023 05 28 (original) - YouTube](https://youtu.be/JTtMn3tu6pA)

… in Obsidian and on WordPress. They wouldn’t load on either platform and would only redirect to YouTube itself.

This video from the same account would load:

![Karts - YouTube](https://youtu.be/kY4XeGGHf48)

Could YouTube be blocking the first two videos over the soundtracks used (see this link: Getting Video unavailable error on an embedded URL - YouTube Community) or something like that?

Edit: although this one with music does play. Different music? Google still checking the rights for the music in the first two videos?

![🥰🥰❤ Lurdes - 04/Feb/2023 - YouTube](https://youtu.be/Q80_pPVPW_c)

Completely confused. :exploding_head:

1 Like

Hello @anon63144152 ,

Just to clarify, none of the videos displayed in this post have any check from YouTube regarding music rights.

Best regards,
Pedro Reyes.

1 Like


As far as I can see, both Obsidian and Wordpress can load the embed code cleanly but YouTube doesn’t allow the video to play on either platform. I think the issue with with YouTube.

I had wondered if some kind of automated tool has monitored the video, heard the music, and blocked embedding from working fully (as someone else mentioned in the link above). Perhaps it is something else.

Just to be clear, I was not saying music rights needed to be obtained … I was just wondering if the music might have triggered something in YouTube. I am sure WhiteNoise will check things as promised for you.

Added two of the videos as links below and they both play. Curious. Tried them again in Obsidian and Wordpress but they won’t load. Very odd.

Hello @WhiteNoise ,

Pattern found: shorts not working

I have tried in Obsidian several links to YouTube shorts and I found the pattern of all of them failing. Here I let you a random list so you can try too:

  • ![](https://www.youtube.com/shorts/ywjIzd0YW-I)
  • ![](https://www.youtube.com/shorts/DbYQH240Bic)
  • ![](https://www.youtube.com/shorts/FPZ-tisp_pw)
  • ![](https://www.youtube.com/shorts/q3v_OzmZS6M)

In all the cases the result is the next one:


Translation to English:

An error has occurred. He tries again later. (Replay ID: kc9_RtdhHyhVWqDb)
More information

The link to more information contains general purpose solutions with the exception of this recommendation: Delete the Chrome extension “YouTube Flash Video Player 57.0.”

best regards,
Pedro Reyes.

Also just stumbled on this. @WhiteNoise seems like youtube shorts links don’t work.
But since youtube shorts (and youtube music songs as well btw) all use the same video id’s.

You can easily convert links these

can become:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.