The Glade 4.0

"Turn the lights down, the party just got wilder."
It is currently Sun Nov 24, 2024 7:02 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: New YouTube tags
PostPosted: Wed Dec 12, 2012 9:42 pm 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
By popular request, I've changed the way the [yt] tags work.

From now on, you must use youtu.be URLs like so:

Code:
[yt]http://youtu.be/8l1sgfLmC1Y[/yt]


Fortunately, this is easy:

Image

I've updated all the existing posts to the new format, but if you stumble across any broken videos, let me know. I had a few issues with hungry hungry regexes before I got it to work as intended, so it wouldn't surprise me if I still missed something somewhere.

Edit:

Okay, I just replaced the entire tag definition because it was old and bad. We should be compatible with the newer features of YouTube now. 16:9 videos get a 16:9 window, so hooray for less scrolling, I guess. More importantly, full screen mode actually works.

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Wed Dec 12, 2012 10:26 pm 
Offline
Near Ground
User avatar

Joined: Wed Sep 02, 2009 10:38 pm
Posts: 6782
Location: Chattanooga, TN
Woo-hoo! You rock.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 13, 2012 12:05 am 
Offline
User avatar

Joined: Thu Sep 03, 2009 11:05 am
Posts: 1111
Location: Phoenix
Holy crap, the full screen button actually works now. That has bugged me for years.

Awesome.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 13, 2012 1:53 am 
Offline
User avatar

Joined: Thu Sep 03, 2009 3:08 am
Posts: 6465
Location: The Lab
Stathol for Glade MVP!!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 13, 2012 9:35 am 
Offline

Joined: Wed Sep 02, 2009 10:49 pm
Posts: 3455
Location: St. Louis, MO
What is special about this thread that it is not marking itself read when I read it?

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 13, 2012 10:24 am 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
Do you open sub-forums in multiple tabs? I tend to, and then read through each sub-forum. But since this thread is announced in multiple forums, when I go to the next sub-forum, this thread is marked unread because I haven't refreshed that tab since I read the thread in another subforum.

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Thu Dec 13, 2012 10:28 am 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
Yeah, I don't know unless you're doing what Kaffis said. The read status works just fine for me. It is "special" in that it's a global announce thread, but the same is true of the rules post.

Whatever the case, I wouldn't sweat it. I'm going to turn it back into a normal post in General this evening.

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 14, 2012 9:25 am 
Offline
Sensitive Ponytail Guy
User avatar

Joined: Fri Sep 04, 2009 10:18 pm
Posts: 2765
Hey Stathol, if you have the ability to do a mass text-based find/replace, would you please:

Find : [youtube]
Replace : [yt]http://youtu.be/
Find : [/youtube]
Replace : [/yt]

That will clean up all of my video posts in which I was using the "old old" tag, trading:
Code:
[youtube]dQw4w9WgXcQ[/youtube]

for:
Code:
[yt]http://youtu.be/dQw4w9WgXcQ[/yt]


If not, no problem - they still work, after all :)

edit : Holy crap, that was fast. I just started searching for all my YouTube posts so I could do some replacement of my own and I only got one edit before I started coming across post after post with the new-fangled tag. Either you snapped your fingers or I was actually using the 'yt' tag for a lot of my posts.

_________________
Go back to zero, take a pill, and get well ~ Lemmy Kilmister


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Fri Dec 14, 2012 10:25 am 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
I haven't done anything with the old [youtube] tags. I forgot to fix those up while I was at it, since we made that change so long ago. There are probably some really old posts that still use them, though. I'll fix those up later on. Maybe late tonight.

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 14, 2012 11:31 am 
Offline
God of the IRC
User avatar

Joined: Wed Sep 02, 2009 7:35 pm
Posts: 3041
Location: The United States of DESU
I searched through the posts and found 10 posts that called [youtube]. I corrected 5 of them, and the others were meta discussions about the tag itself. I left those alone.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Fri Dec 14, 2012 1:05 pm 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
Cool. I didn't realize there were few enough of them to edit them by hand. I deleted the [youtube] tag.

While I was at it, I updated the [vimeo] tag to a new embedding method. Nothing has changed about the usage; I just altered what PHPBB3 injects in place of the tag.

In theory, this should make embedded Vimeo vids compatible with non-Flash devices since it doesn't specifically call for a Flash object anymore. I can't say whether Vimeo embedding worked on my iPhone before, but it works now anyway.

The same applies to the new [yt] tag. Mobile Safari had some kind of built-in workaround hack for YouTube, but I don't know how other mobile devices handled it. Does Android have Flash support? If not, did YouTube embeds work with Android before now?

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 14, 2012 2:08 pm 
Offline
God of the IRC
User avatar

Joined: Wed Sep 02, 2009 7:35 pm
Posts: 3041
Location: The United States of DESU
Adobe released Flash for Android for a short period, around Android 2.2, but it was taken out for Android 4.0+. When I pull up a thread with videos on Chrome for Android, the video loads properly, so Chrome, at least, supports youtube embedding.

edit: the default android web browser also supports youtube embedding.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Fri Dec 14, 2012 2:16 pm 
Offline
Web Ninja
User avatar

Joined: Wed Sep 02, 2009 8:32 pm
Posts: 8248
Location: The Tunt Mansion
Keep in mind that most embeds are HTML5, not Flash.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 14, 2012 4:55 pm 
Offline
User avatar

Joined: Tue Sep 08, 2009 9:36 am
Posts: 4320
For the record. Yuck. Why fix what wasn't broken?


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Dec 14, 2012 5:33 pm 
Offline
I got nothin.
User avatar

Joined: Thu Sep 03, 2009 7:15 pm
Posts: 11160
Location: Arafys, AKA El Müso Guapo!
Aizle wrote:
For the record. Yuck. Why fix what wasn't broken?


Ask youtube.

_________________
Image
Holy shitsnacks!


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Dec 14, 2012 7:00 pm 
Offline
User avatar

Joined: Thu Sep 03, 2009 3:08 am
Posts: 6465
Location: The Lab
Aizle wrote:
For the record. Yuck. Why fix what wasn't broken?


It was actually pretty broken..

I mean the tags worked, but the functionality and presentation were terrible compared to what we get now.

It also simplifies the process, especially since, as Mr. Sky pointed out, youtube is making it harder and harder to get the 'long' form of the URL. Now all you need to do is hit the 'share' button, which is even accessible on embeds, and paste the URL in between the {yt} tags....


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Fri Dec 14, 2012 7:17 pm 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
Lenas wrote:
Keep in mind that most embeds are HTML5, not Flash.

The key word being "most". The old [yt] tag def explicitly embedded a Flash object whether you liked it or not. You'd get flash embedding even if you were opted into Youtube's HTML5 trial. The new tags don't have this problem because they don't actually embed anything. They just fetch a URL in an <iframe>, letting YouTube/Vimeo decide how they want to embed it.

If you try it, you'll see that embedded YouTube videos on the Glade now respect your settings if you've opted in to the HTML5 test. Which reminds me, you should all do this if you haven't yet:
http://www.youtube.com/html5
Pages with lots of videos (earbug thread, etc.) load much faster with HTML5.

Ok, slight caveat: full screen mode doesn't work with HTML5 embedding just yet. Apparently this is a browser limitation.
Addendum #2: And yet oddly enough Vimeo's fullscreen does work with HTML5 embedding, even though they claim it doesn't.

Aizle wrote:
For the record. Yuck. Why fix what wasn't broken?

I'm not quite sure what you mean by "Yuck". The old tags were pretty clunky if not outright broken. YouTube doesn't have a stable URL scheme. That's the whole reason they introduced the youtu.be shortener. The old [yt] tags would barf unless the v={whatever} parameter was the first getvar in the URL. This often meant having to edit it by hand before you could use it on the Glade. The new tags vastly simplify things. They also bring the Glade into compliance with YouTube's intended URL scheme for sharing videos. It might not matter now, but it's a good move in terms of future-proofing.

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 14, 2012 7:57 pm 
Offline
User avatar

Joined: Tue Sep 08, 2009 9:36 am
Posts: 4320
Eh, ignore me. I was most being grumpy about change.


Top
 Profile  
Reply with quote  
 Post subject: Re: New YouTube tags
PostPosted: Fri Dec 14, 2012 10:09 pm 
Offline
Web Ninja
User avatar

Joined: Wed Sep 02, 2009 8:32 pm
Posts: 8248
Location: The Tunt Mansion
Stathol wrote:
Ok, slight caveat: full screen mode doesn't work with HTML5 embedding just yet. Apparently this is a browser limitation.
Addendum #2: And yet oddly enough Vimeo's fullscreen does work with HTML5 embedding, even though they claim it doesn't.


Funnily enough, if you right click an embedded HTML5 video, and select "Pop out" you can full screen the resulting window :P


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 158 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group