Improvements to embedded video links - including youtube

Forum News, Announcements and any issues you're having with the forum

Moderator: myglaren

User avatar
xantia_v6
Forum Admin Team
Posts: 7908
Joined: 09 Nov 2005, 23:03
x 512

Improvements to embedded video links - including youtube

Post by xantia_v6 »

I have installed a new extension on the forum which changes the facility for embedding video links in posts.

The old [youtube] tags are gone, there are now new [media] tags available, but most of the time you won't need them, as just dropping the url of a video into the post should create the thumbnail.

e.g. puttng

Code: Select all

https://www.youtube.com/watch?v=kAG39jKi0lI
into a post (with no tags) produces:


Even better, it works with most other video and media hosting sites, including:

ABC News
Allocine
Amazon Product
Anchor
Audioboom
Audiomack
Bandcamp
BBC News
BitChute
Bleacher Report videos
Break
Brightcove
CBS News Video
Clyp
CNBC
CNN
CNNMoney
CodePen
CollegeHumor
Comedy Central
Coub
Dailymotion
Democracy Now!
Dotsub
dumpert
eBaum's World 8tracks
ESPN
Facebook
Flickr
Fox News
FOX Sports
Funny or Die
Gamespot
GameTrailers
Getty Images
Gfycat
Gifs.com
GitHub Gist
Global News
GoFundMe
Google Drive
Google+
Google Sheets
Hudl
Hulu
IGN
IMDb
Imgur
Indiegogo
Instagram
Internet Archive
İzlesene
JW Platform
Kontinental
Hockey League (КХЛ)
Kickstarter
Libsyn
Liveleak
Livestream
Mail.Ru
Medium
Megaphone
Metacafe
Mixcloud
Mixer
MLB
Mod DB
MRCTV
MSNBC
National Geographic Channel
National Geographic Video
NBC News
NBC Sports
NHL Videos and Highlights
NPR
The New York Times Video
Odnoklassniki
Orfium
Pastebin
Pinterest
Podbean
Prezi
Reddit threads and comments
Rutube
SchoolTube
Scribd
Sendvid
SlideShare
snotr
SoundCloud
Sporcle
Sportsnet
Spotify
Spreaker
Steam store
Stitcher
Straw Poll
Streamable
Streamja
Team Coco
TED Talks
Telegram
The Atlantic Video
The Guardian (obsolete)
The Onion
TikTok
TMZ
Trailer Addict
Trending Views
Tumblr
247Sports
Twitch
Twitter
Ustream
VBOX7
Veoh
Vevo
Video Detective
VideoPress
Vimeo
Vine
VK
Vocaroo
Vox
Washington Post Video
WorldStarHipHop
The Wall Street Journal Online
XboxClips Gamer DVR
Youku
YouTube
User avatar
myglaren
Forum Admin Team
Posts: 20454
Joined: 02 Mar 2008, 14:30
x 1734

Re: Improvements to embedded video links - including youtube

Post by myglaren »

Excellent stuff Mike.
Is that why the facebook (or possibly twitter) link I posted last night embedded itself? I expected it to remain as a link.
User avatar
xantia_v6
Forum Admin Team
Posts: 7908
Joined: 09 Nov 2005, 23:03
x 512

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

myglaren wrote:
05 Apr 2020, 08:49
Excellent stuff Mike.
Is that why the facebook (or possibly twitter) link I posted last night embedded itself? I expected it to remain as a link.
Yes, all sorts of embedded items are popping up in old posts if you look for them.

It was actually quite a trial getting this to work. The extension writer (and the person who wrote the renderer that it is based on) assumed that it would be installed on new forums, and provided no means of backward compatibility with the old [youtube] tags. It took a day to determine that there was no esasy way around it, and then another day to write and test a brute-force database query to rewrite the (4500) existing [youtube] tags to the new format.
User avatar
myglaren
Forum Admin Team
Posts: 20454
Joined: 02 Mar 2008, 14:30
x 1734

Re: Improvements to embedded video links - including youtube

Post by myglaren »

Excellent work. And I couldn't even manage to shift a few posts yesterday :(
Gibbo2286
Donor 2020
Posts: 5530
Joined: 08 Jun 2011, 18:04
x 1260

Re: Improvements to embedded video links - including youtube

Post by Gibbo2286 »

myglaren wrote:
05 Apr 2020, 08:59
Excellent work. And I couldn't even manage to shift a few posts yesterday :(

I shifted a few last week, see my new fence. :)
User avatar
Paul-R
Donor 2020
Posts: 5441
Joined: 07 May 2009, 16:24
x 803

Re: Improvements to embedded video links - including youtube

Post by Paul-R »

Excellent job. What are going to do with all your free time now?
User avatar
myglaren
Forum Admin Team
Posts: 20454
Joined: 02 Mar 2008, 14:30
x 1734

Re: Improvements to embedded video links - including youtube

Post by myglaren »







:(

May be a YouTube problem as they flash up briefly - using Firefox sourced link but posting in Chromium. YouTube crashing in Chromium.
User avatar
white exec
Moderating Team
Posts: 7384
Joined: 21 Dec 2015, 13:46
x 1445

Re: Improvements to embedded video links - including youtube

Post by white exec »

Glad to say now working ok, either as a simple paste-in of the URL, or using the new media tab.
Thanks for getting this sorted.

User avatar
xantia_v6
Forum Admin Team
Posts: 7908
Joined: 09 Nov 2005, 23:03
x 512

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

I have deleted a bunch of posts above, related to the earlier forum configuration problem, as they could be confusing to future readers.
User avatar
myglaren
Forum Admin Team
Posts: 20454
Joined: 02 Mar 2008, 14:30
x 1734

Re: Improvements to embedded video links - including youtube

Post by myglaren »

OK in Firefox, broken in Chromium.

OK, fixed - it was my copy of Chromium that was broken.
User avatar
Zelandeth
Donor 2016
Posts: 4068
Joined: 17 Nov 2014, 00:36
x 522

Re: Improvements to embedded video links - including youtube

Post by Zelandeth »

Ah ha... that's why I've just spent half an hour trying to get a video embedded.

Not sure if I'm doing something wrong, but I've been unable to get it to work...just pasting the link simply results in a post with a link in...and attempting to put media tags gets me an error saying that I can't use those tags.

I find it increasingly surprising that in the days of Windows 95/98 where I was able to run a whole network of computers for an educational establishment with one hand tied behind my back, yet keep getting utterly stuck with things like this these days...
User avatar
xantia_v6
Forum Admin Team
Posts: 7908
Joined: 09 Nov 2005, 23:03
x 512

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

You were using a youtu.be shortcut which (surprisingly was not supported by the phpBB extension. I have now added support for it.
User avatar
myglaren
Forum Admin Team
Posts: 20454
Joined: 02 Mar 2008, 14:30
x 1734

Re: Improvements to embedded video links - including youtube

Post by myglaren »

That seems iffy still Mike. Unless it is my connection.