Bug Youtube embedded videos replaced by white box

  • Thread starter Thread starter Ryan_m_b
  • Start date Start date
AI Thread Summary
Users are experiencing issues with embedding YouTube videos, resulting in a white box instead of the video. The correct method involves extracting the video ID from the URL and wrapping it in specific tags. One user demonstrated the proper format, which resolved the issue. There is a suggestion to improve forum documentation to clarify this process for future users. Overall, the discussion highlights a common embedding error and provides a solution for successful video integration.
Ryan_m_b
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Messages
5,963
Reaction score
726
I've noticed that when I try to embed youtube videos instead there is a white box in the post with no video, I've tried it a few times only to edit the video out of the post and replace it with a link. Today I found a thread where another user is having the same problem https://www.physicsforums.com/showthread.php?p=3424633#

I'll embed something below to show what I'm talking about

https://www.youtube.com/watch?v=http://www.youtube.com/watch?v=eO-Vl-LTk2U

Any help would be appreciated! Thanks.
 
Physics news on Phys.org
Hmm, let me have a try, using PF's YouTube button:

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

I can see this video, but I can't see the video in your post. Are you sure you're doing it correctly? When you look at the actual URL of a YouTube video, part of it looks like this:

watch?v=tQjuSw6ZOcI

Take the "gibberish" string after "v=" (up to but not including the following "&" in the URL), and wrap it between [ YOUTUBE ] and [/ YOUTUBE ] tags (remove the spaces). This is what the TV-set icon gives you in the message-composition screen.
 
Last edited:
jtbell said:
Hmm, let me have a try, using PF's YouTube button:

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

OK looking at how you wrote that did you copy and paste the code at the end of the URL? what I've been doing is taking a video and wrapping the URL like this (I'm using "{" instead of "[" for illustration)
{YOUTUBE}http://www.youtube.com/watch?v=tQjuSw6ZOcI{/YOUTUBE}

Which comes out like this

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

But perhaps if I try this

{YOUTUBE}tQjuSw6ZOcI{/YOUTUBE}

(i.e. copying and pasting the URL and deleting everything but the code at the end http://www.youtube.com/watch?v=tQjuSw6ZOcI)

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

Right that seems to work! I didn't realize that's what we had to do, thanks.

EDIT: Didn't see your edit before I wrote this, yeah I was doing it wrong.
 
Last edited:
OK, you got it. :smile:

I don't remember how I found out how to do it correctly. If it isn't in the forum documentation or FAQs somewhere, we need to add it.
 
I've never seen an FAQ or tutorial on the little confusing facet's like this, still if someone needs help they can always ask like this and get it sorted in no time. Cheers again
 
Whenever you see a post that makes you think "I wonder how they did that?", hit the Quote button and you will see exactly how they did that.

(And then hit your browser's "back" button in order not to post an actual reply.)
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top