TED videos preview shows just a thumbnail instead of the video itself like youtube


(Non-technical User) #1

When embedding a tedtalk url, the preview side shows just a thumbnail. For sometime I thought tedtalks werent embedding until I actually posted and found it did embed well in the post. Some users too reported the same and did not go ahead with their embeds.


(Sam Saffron) #2

Sure, the preview thumbnail in this case can be somewhat improved to communicate that there is a video in play.

Youtube does the same thing.

I wonder if we should simply allow people to play videos and so on in the preview area, @eviltrout do you remember why we originally opted out of allowing that?


(Robin Ward) #3

The problem is that area is constantly refreshed as keys are typed. So when a video is inserted there it’ll be overwritten with every keystroke.


(Sam Saffron) #4

But can’t the virtual DOM take care of that these days?


(Jeff Atwood) #5

I do not think the editor uses that?


(Sam Saffron) #6

It does not, but we could specifically use it for the HTML diffing if IFRAMES are there. So it could solve this problem quite nicely with zero impact on IFRAMEy previews.


(Robin Ward) #7

I briefly looked into using vdom for the editor preview and it was a mess. Basically we spit out HTML from our markdown pipeline. That HTML would have to be parsed before it could be diffed against the dom, in other words every keystroke would have to parse all the HTML first!

I punted on it as we plan on moving to CommonMark, and I was hoping we could have marked emit vdom nodes instead of HTML. Then we could skip the parsing phase altogether.


(Pad Pors) #8

currently TED videos are becoming one-boxed rather than embedded. is there any trick to embed them?

e.g.: