youtube.com and youtu.be broken embedded player in forum - Page 1
Forum section: electronics / general

author: Memphis
author_rank: Contributor
timestamp: April 26, 2013, 04:00:32 pm
content: Hi Dave,as it is mentioned in subject, the people wonderabout embedded youtube player in threads and replies in forum.It seem to be problem with domain name and script which process URL messages.Some people just take url from browse and paste it to message, this works just fine, but when you open a youtube video and click on the share button a new url for that video is generated with notyoutube.comdomain name but withyoutu.bedomain name.Is it possible to tweak/add new domain name to get embedded player work for that.For example, following link will be just link to youtube video:Code:[url=http://youtu.be/9WL7zKqhvq8]STM32, broken CPU by bad ESD handling, protection testSTM32, broken CPU by bad ESD handling, protection testAnd this link will be with embedded player:Code:[url=https://www.youtube.com/watch?v=9WL7zKqhvq8]STM32, broken CPU by bad ESD handling, protection testPS: This is just some random video showing my poor english skills

author: AndersAnd
author_rank: Frequent Contributor
timestamp: November 27, 2013, 06:40:19 pm
content: Bump.Hi Dave,Can you fix the embedded YouTube video funtion to also accept youtu.be linksAnd also to accept httpslinksI for example use https everywhere in my browser:https://www.eff.org/https-everywhereSo YouTube links always begins with https, but this doesn't work if I paste it in this forum.I've seen other forums where all 4 links to the same video works.4 different links for the same retro EEVblog #1 video at YouTube, but only the last one works with forum embedding:http://youtu.be/AUwbtG6z6pIhttps://youtu.be/AUwbtG6z6pI

author: IanB
author_rank: Super Contributor
timestamp: November 27, 2013, 06:50:50 pm
content: Quote from: Memphis on April 26, 2013, 04:00:32 pmQuote from: AndersAnd on November 27, 2013, 06:40:19 pmPlease, NOOOOO!!!!!!The youtu.be URLs are helpfully designed to avoid the horrible auto-embedding feature present in so many forums. They are share links, not embed links.If you want the forum to automatically re-write your link as an embedded video, use the full URL, or use an embed link directly.If you want the forum to leave your link unmolested, use the YouTube provided share link.Did you notice that with a full YouTube URL you cannot stop the forum software messing with it? To see how this is bad, try posting a YouTube link with a start time code included. You will notice that the attempt to re-write the link breaks things.So please, let's leave well alone and not try to break things that are working as designed.

author: AndersAnd
author_rank: Frequent Contributor
timestamp: November 27, 2013, 06:57:05 pm
content: At least add the full httpslinks then so they act like the full http links.Pasting a link directly doesn't work for anyone usingHTTPS Everywhereor similar:https://www.eff.org/https-everywhereThen http...youtu.be and https...youtu.be can be left as is.

author: IanB
author_rank: Super Contributor
timestamp: November 27, 2013, 07:18:49 pm
content: Quote from: AndersAnd on November 27, 2013, 06:57:05 pmI don't see how this is a problem with the forum software. If you paste an http link it will turn into an embed link automatically. Then HTTPS Everywhere should rewrite the link as https automatically if you are using HTTPS Everywhere, and leave it as http if not.Isn't it a problem with HTTPS Everywhere rather than SMF forums?

author: AndersAnd
author_rank: Frequent Contributor
timestamp: November 27, 2013, 07:27:04 pm
content: The problem is every link at YouTube starts with https if you use HTTPS Everywhere.So if you copy/paste links like from YouTube you just get this, which doesn't gets highlighted (it works on some other forums):But everyone typing in a https link or copying a https link from another forum for example will have this problem regardless if they use HTTPS Everywhere or not. And people won't know why it doesn't get embedded.I reckon it's a very simple fix to the forum software to also embed links posted as https as it already works with http links.

author: Bloch
author_rank: Unknown
timestamp: December 30, 2013, 09:06:35 pm
content: Quote from: AndersAnd on November 27, 2013, 07:27:04 pmYep the ones there know about it dont think about it. And the ones there don't know have a hard time trying to decode why some can and yourself cant.

author: tooki
author_rank: Super Contributor
timestamp: June 01, 2019, 07:17:23 pm
content: Quote from: IanB on November 27, 2013, 06:50:50 pmI could swear that the youtu.be links were left alone -- and now they're not.Other than using an external URL shortener, which I hate because it's a source of link rot, I cannot find ANY way to defeat the auto embedder, for the many times I want an inline hyperlink, not an embedded video!I implore the admins to implement a way to, like, have the forum software respect my carefully-crafted BBcode, or at least provide a way to defeat the automation when called for.

author: Brumby
author_rank: Unknown
timestamp: June 02, 2019, 04:48:37 am
content: Quote from: tooki on June 01, 2019, 07:17:23 pmHow about this:https://www.youtube.com/embed/ITfQ4S0OUhsI just pasted the character string you see - and SMF wrapped URL tags around it.You can get this by doing a right click on a Youtube video, selecting the EMBED code and stripping off everything except the URL.

author: tooki
author_rank: Super Contributor
timestamp: June 02, 2019, 11:30:29 pm
content: Quote from: Brumby on June 02, 2019, 04:48:37 amWell, I guess, but the resulting page is the embed video, without the video description, comments, etc. :/Is it me or is it insane that the shortened links are converted to embeds and that embed links are the only way to avoid an embed?

author: EEVblog
author_rank: Unknown
timestamp: June 02, 2019, 11:34:51 pm
content: Quote from: tooki on June 01, 2019, 07:17:23 pmWe generally do not modify plugin code on this forum. if the plugin can't do this then we aren't going to touch it, sorry.

author: EEVblog
author_rank: Unknown
timestamp: June 02, 2019, 11:36:27 pm
content: Testhttps://youtu.be/q4gXnpFPFzQ

author: Yansi
author_rank: Super Contributor
timestamp: June 02, 2019, 11:40:06 pm
content: Test too.. Even this aint workin?//EDIT: No, it is not. Dang!

author: tooki
author_rank: Super Contributor
timestamp: June 02, 2019, 11:42:28 pm
content: Quote from: EEVblog on June 02, 2019, 11:34:51 pmHuh? The point is that I don't only want to embed youtube videos. I sometimes want to link to them inline, as in, make a few words in a sentence clickable, with a youtube video as the destination.Here, the words I wrote get hidden and instead the video is placed in the middle of my sentence.Suppose I want to link to the EEVBlog #1 video, like so:Code:Hey, remember how Dave [url=https://www.youtube.com/watch?v=AUwbtG6z6pI]reviewed the DS1052E in his first video back in 2009?The output I'm expecting (simulated here) would look like:QuoteInstead we get this:QuoteAnd what's extra maddening is that since the embed change is made on display only, it a) isn't visible in the preview, and b) applies retroactively to posts using the youtu.be links that used to display as inline!!

author: tooki
author_rank: Super Contributor
timestamp: June 02, 2019, 11:44:53 pm
content: Quote from: EEVblog on June 02, 2019, 11:36:27 pmCheck out the source code of Reply #1 in this thread. It contains 4 different URL formats, of which originally only the last one was change to an embed, but now all are!!!!

author: EEVblog
author_rank: Unknown
timestamp: June 03, 2019, 02:01:48 am
content: OK, fixed.Seems I had an old version of the SImple Video Audio Embedded. Have updated and it now has an option to disable Youtube short links.

author: tooki
author_rank: Super Contributor
timestamp: June 03, 2019, 07:54:45 am
content: Thank you!!!