Youtube embedded videos replaced by white box

  • Context: Bug 
  • Thread starter Thread starter Ryan_m_b
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 9K views
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: