The Glade 4.0 https://gladerebooted.net/ |
|
New YouTube tags https://gladerebooted.net/viewtopic.php?f=2&t=9475 |
Page 1 of 1 |
Author: | Stathol [ Wed Dec 12, 2012 9:42 pm ] |
Post subject: | New YouTube tags |
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: 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. |
Author: | FarSky [ Wed Dec 12, 2012 10:26 pm ] |
Post subject: | Re: New YouTube tags |
Woo-hoo! You rock. |
Author: | Aegnor [ Thu Dec 13, 2012 12:05 am ] |
Post subject: | |
Holy crap, the full screen button actually works now. That has bugged me for years. Awesome. |
Author: | Midgen [ Thu Dec 13, 2012 1:53 am ] |
Post subject: | |
Stathol for Glade MVP!! |
Author: | shuyung [ Thu Dec 13, 2012 9:35 am ] |
Post subject: | |
What is special about this thread that it is not marking itself read when I read it? |
Author: | Kaffis Mark V [ Thu Dec 13, 2012 10:24 am ] |
Post subject: | |
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. |
Author: | Stathol [ Thu Dec 13, 2012 10:28 am ] |
Post subject: | Re: New YouTube tags |
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. |
Author: | Shelgeyr [ Fri Dec 14, 2012 9:25 am ] |
Post subject: | |
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. |
Author: | Stathol [ Fri Dec 14, 2012 10:25 am ] |
Post subject: | Re: New YouTube tags |
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. |
Author: | Mookhow [ Fri Dec 14, 2012 11:31 am ] |
Post subject: | |
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. |
Author: | Stathol [ Fri Dec 14, 2012 1:05 pm ] |
Post subject: | Re: New YouTube tags |
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? |
Author: | Mookhow [ Fri Dec 14, 2012 2:08 pm ] |
Post subject: | |
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. |
Author: | Lenas [ Fri Dec 14, 2012 2:16 pm ] |
Post subject: | Re: New YouTube tags |
Keep in mind that most embeds are HTML5, not Flash. |
Author: | Aizle [ Fri Dec 14, 2012 4:55 pm ] |
Post subject: | |
For the record. Yuck. Why fix what wasn't broken? |
Author: | Müs [ Fri Dec 14, 2012 5:33 pm ] |
Post subject: | Re: |
Aizle wrote: For the record. Yuck. Why fix what wasn't broken? Ask youtube. |
Author: | Midgen [ Fri Dec 14, 2012 7:00 pm ] |
Post subject: | Re: |
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.... |
Author: | Stathol [ Fri Dec 14, 2012 7:17 pm ] |
Post subject: | Re: New YouTube tags |
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. 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. |
Author: | Aizle [ Fri Dec 14, 2012 7:57 pm ] |
Post subject: | |
Eh, ignore me. I was most being grumpy about change. |
Author: | Lenas [ Fri Dec 14, 2012 10:09 pm ] |
Post subject: | Re: New YouTube tags |
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 |
Page 1 of 1 | All times are UTC - 6 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |