Main > Forum/Website Discussion

Embed Youtube videos in your messages now!

<< < (4/4)

krick:
saint,

This doesn't appear to work anymore.  Or maybe I'm doing something incorrectly.

EDIT:  It actually works (sort of) if you just paste a raw YouTube link into your post without the "YouTube" BBC code tags around it.  It embeds the video, but it centers it on the screen (probably should align left) and it has some strange text at the bottom of the video in red that says "! No longer available" for some reason.  You can see it in action on this post...

http://forum.arcadecontrols.com/index.php/topic,157613.msg1656276.html#msg1656276

PL1:
It has been on the "things to fix" list for a while now.  :(

Howard mentioned a while back that the current HTML code for YouTube embedding is deprecated by a number of browsers like IE, but it still works in others like Firefox.

The workaround that I use is:
1. Paste the video URL with no tags and change the "https" to ""http".  (for browsers that still support embedding)

2. Paste the URL with URL tags.  (for browsers that don't support embedding)

So far, the code should look like this.

--- Code: ---http://www.youtube.com/watch?v=nSH_jSqos8M

[url]https://www.youtube.com/watch?v=nSH_jSqos8M[/url]

--- End code ---

3. Post it.

4. Modify the post to replace the auto-generated "! No longer available" text with "Using the IoT Relay on a USB Port - Example".

Before:

--- Code: ---[url=http://www.youtube.com/watch?v=nSH_jSqos8M][b][color=red]![/color][/b] No longer available[/url]
--- End code ---

After:

--- Code: ---[url=http://www.youtube.com/watch?v=nSH_jSqos8M]Using the IoT Relay on a USB Port - Example[/url]
--- End code ---

I know this process is a real pain, but for now it's the best way to work with both embedding and non-embedding browsers.   :dunno


Scott

krick:
Thanks.  I'll use your workaround for now.

Here's an SMF forum plugin for YouTube links...

https://custom.simplemachines.org/mods/index.php?mod=3982

I was last updated in 2014 so it probably still works.

Mr. Peabody:
Using the latest Firefox, it does not embed with tags. It will embed in the preview with only the address with http, but in the posting shows "!No longer available" which is hyperlinked to the video.

Mr. Peabody:
So what happened to youtube embedding?

Navigation

[0] Message Index

[*] Previous page

Go to full version