Wouldn't it be a shame if you saw "This video can't be played"?
Recently, I've been rewriting a blog article, but at that time I often couldn't view the Youtube video embedded in the article, and when I saw this, I was a little troubled.
Recommended for such a person
- If you have a Youtube video embedded in your blog
- Those who use Affinger as a blog theme
What is the situation when a Youtube video embedded in a blog "This video cannot be played"?
First of all, I will tell you how we embedded Youtube in our blog. The way to do this is to right-click on the Youtube video you want to embed in your blog, "copy the embed code <>", put it in text mode and paste it. (I'm running in classic mode instead of Gutenberg)
so that I can embed the video without any problems, but sometimes when I open an article I posted in the past, I sometimes see "This video can not be played".
I don't know why. I'm guessing that I've picked up a video from a playlist and that playlist has disappeared.
Recovery method when "This video cannot be played"
There is another way to embed Youtube videos in Affinger. That's how to use tags. Select Youtube > the tag > other parts as follows:
Then you will see something like this:
Set watch?v= after the youtube video address to the id field. If the address is, for example, "https://www.youtube.com/watch?v =XXXXX"...
[youtube id=<span class="hutoaka">XXXXX</span>]
It is described.
<iframe width="1280" height="720" src="https://www.youtube.com/embed/<span class="hutoaka">YYYYY</span>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Paste it inside the youtube tag.
[youtube id=<span class="hutoaka">YYYYY</span>]
If you don't see it, the video itself has been deleted, so give up at that time.
So, when a Youtube video embedded in your blog becomes "This video can't be played", let's use the youtube tag!
Thank you for browsing. Bye bye(^^)/