Author Topic: youtube.com and youtu.be broken embedded player in forum  (Read 8732 times)

0 Members and 1 Guest are viewing this topic.

Offline MemphisTopic starter

  • Contributor
  • Posts: 27
  • Country: cz
  • In quantum theory, we are lost in space and time.
    • My personal YT channel
youtube.com and youtu.be broken embedded player in forum
« on: April 26, 2013, 04:00:32 pm »
Hi Dave,

as it is mentioned in subject, the people wonder :scared: about 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 not youtube.com domain name but with youtu.be domain name.

Is it possible to tweak/add new domain name to get embedded player work for that.  :-/O

For example, following link will be just link to youtube video:
Code: [Select]
[url=http://youtu.be/9WL7zKqhvq8]STM32, broken CPU by bad ESD handling, protection test[/url]
STM32, broken CPU by bad ESD handling, protection test

And this link will be with embedded player:
Code: [Select]
[url=https://www.youtube.com/watch?v=9WL7zKqhvq8]STM32, broken CPU by bad ESD handling, protection test[/url]


PS: This is just some random video showing my poor english skills :palm:
...sorry for my english :palm:
 

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #1 on: November 27, 2013, 06:40:19 pm »
Bump.

Hi Dave,

Can you fix the embedded YouTube video funtion to also accept youtu.be links
And also to accept https links
I for example use https everywhere in my browser: https://www.eff.org/https-everywhere
So 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/AUwbtG6z6pI

https://youtu.be/AUwbtG6z6pI




 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11790
  • Country: us
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #2 on: November 27, 2013, 06:50:50 pm »
Is it possible to tweak/add new domain name to get embedded player work for that.  :-/O

Can you fix the embedded YouTube video funtion to also accept youtu.be links

Please, NOOOOO!!!!!!  :o

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.
 
The following users thanked this post: Psi, Clear as mud, tooki

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #3 on: November 27, 2013, 06:57:05 pm »
At least add the full https links then so they act like the full http links.
Pasting a link directly doesn't work for anyone using HTTPS Everywhere or similar: https://www.eff.org/https-everywhere

Then http...youtu.be and https...youtu.be can be left as is.
« Last Edit: November 27, 2013, 07:00:45 pm by AndersAnd »
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11790
  • Country: us
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #4 on: November 27, 2013, 07:18:49 pm »
At least add the full https links then so they act like the full http links.
Pasting a link directly doesn't work for anyone using HTTPS Everywhere or similar: https://www.eff.org/https-everywhere

Then http...youtu.be and https...youtu.be can be left as is.

I 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?
 

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #5 on: November 27, 2013, 07:27:04 pm »
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.
 

Offline Bloch

  • Supporter
  • ****
  • Posts: 453
  • Country: dk
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #6 on: December 30, 2013, 09:06:35 pm »
And people won't know why it doesn't get embedded.


Yep 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.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #7 on: June 01, 2019, 07:17:23 pm »
Is it possible to tweak/add new domain name to get embedded player work for that.  :-/O

Can you fix the embedded YouTube video funtion to also accept youtu.be links

Please, NOOOOO!!!!!!  :o

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.
I could swear that the youtu.be links were left alone -- and now they're not.  |O 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.
« Last Edit: June 01, 2019, 07:21:15 pm by tooki »
 
The following users thanked this post: Ian.M

Offline Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #8 on: June 02, 2019, 04:48:37 am »
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!

How about this:
https://www.youtube.com/embed/ITfQ4S0OUhs

I 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.
« Last Edit: June 02, 2019, 04:51:59 am by Brumby »
 
The following users thanked this post: tooki

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #9 on: June 02, 2019, 11:30:29 pm »
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!

How about this:
https://www.youtube.com/embed/ITfQ4S0OUhs

I 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.
Well, 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?  :o
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #10 on: June 02, 2019, 11:34:51 pm »
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.

We 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.
« Last Edit: June 02, 2019, 11:36:44 pm by EEVblog »
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #12 on: June 02, 2019, 11:40:06 pm »
Test too.. Even this aint workin?




//EDIT: No, it is not. Dang!
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #13 on: June 02, 2019, 11:42:28 pm »
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.

We 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. I can't see why you can't just copy and paste the URL?
And I agree with other that's it's nice to have a way to paste a Yotuube link without it actually embedding.
Huh? 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: [Select]
Hey, remember how Dave [url=https://www.youtube.com/watch?v=AUwbtG6z6pI]reviewed the DS1052E[/url] in his first video back in 2009?
The output I'm expecting (simulated here) would look like:
Quote
Hey, remember how Dave reviewed the DS1052E in his first video back in 2009?

Instead we get this:

Quote
Hey, remember how Dave in his first video back in 2009?



And 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!!
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #14 on: June 02, 2019, 11:44:53 pm »
Test

https://youtu.be/q4gXnpFPFzQ
Check 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!!!!
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #15 on: June 03, 2019, 02:01:48 am »
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.
 
The following users thanked this post: tooki

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: youtube.com and youtu.be broken embedded player in forum
« Reply #16 on: June 03, 2019, 07:54:45 am »
Thank you!!!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf