new expirimental youtube embeding code...

Moderators: Elvis, DrVolin, Jeff

new expirimental youtube embeding code...

Postby justdrew » Wed May 29, 2013 2:10 am

I haven't changed the standard youtube embed BBcodes yet, but want to test out this new code for a bit first. Works the same as the old, just put the video id between tags like this:

Code: Select all
[test_yt]M0B62FeCLgU[/test_yt]


The idea here is to not load the video objects unless they are clicked on, while still showing a preview and title for what the video is. This should speed up things on video heavy pages. This was one of the recent improvement ideas. (and I got jelous of boing boing's new snowy video links, I can probably get our own snow like effect and play icon overlayed on the preview image, but this is enough for now.) and it didn't take stringing crap out over multiple external js files, css sheets, etc. :P

Here's two examples:

youtube video


youtube video



Try posting some more in this thread and lets see if it breaks at all.
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)

Re: new expirimental youtube embeding code...

Postby justdrew » Wed May 29, 2013 2:19 am

a test flood

youtube video


youtube video


youtube video


youtube video


youtube video


youtube video
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)

Re: new expirimental youtube embeding code...

Postby justdrew » Wed May 29, 2013 2:29 am

fyi - one minor bug...

once a video is playing (because you clicked on it) if you click again to the right of the video while still withing the post body area, it'll restart the video from the beginning. I've just got to tighten up the hot zone of the containing div, but not tonight.

never mind, this is fixed already.
Last edited by justdrew on Wed May 29, 2013 2:36 am, edited 1 time in total.
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)

Re: new expirimental youtube embeding code...

Postby Elvis » Wed May 29, 2013 2:33 am

youtube video
“The purpose of studying economics is not to acquire a set of ready-made answers to economic questions, but to learn how to avoid being deceived by economists.” ― Joan Robinson
User avatar
Elvis
 
Posts: 7567
Joined: Fri Apr 11, 2008 7:24 pm
Blog: View Blog (0)

Re: new expirimental youtube embeding code...

Postby justdrew » Wed May 29, 2013 2:41 am

thanks elvis :thumbsup

let me know if it misbehaves in anyone's browsers :wink:

seems to work fine in firefox, chrome and IE10, not tested anything else.

looking to hear about the mobile experience particularly.
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)

Re: new expirimental youtube embeding code...

Postby NeonLX » Wed May 29, 2013 9:44 am

youtube video


youtube video
America is a fucked society because there is no room for essential human dignity. Its all about what you have, not who you are.--Joe Hillshoist
User avatar
NeonLX
 
Posts: 2293
Joined: Sat Aug 11, 2007 9:11 am
Location: Enemy Occupied Territory
Blog: View Blog (1)

Re: new expirimental youtube embeding code...

Postby compared2what? » Wed May 29, 2013 10:56 am

youtube video
“If someone comes out of a liquor store with a weapon and 50 dollars in cash I don’t care if a Drone kills him or a policeman kills him.” -- Rand Paul
User avatar
compared2what?
 
Posts: 8383
Joined: Sun Oct 21, 2007 6:31 am
Blog: View Blog (0)

fly home baby

Postby IanEye » Wed May 29, 2013 11:09 am

*

youtube video


Image

babble on...


*


is there any way to make them "center"? thanks!
User avatar
IanEye
 
Posts: 4865
Joined: Tue Jan 17, 2006 10:33 pm
Blog: View Blog (29)

Re: new expirimental youtube embeding code...

Postby Laodicean » Wed May 29, 2013 6:36 pm

youtube video
User avatar
Laodicean
 
Posts: 3514
Joined: Wed Jan 27, 2010 9:39 pm
Blog: View Blog (16)

Re: new expirimental youtube embeding code...

Postby Project Willow » Wed May 29, 2013 6:41 pm

What's with the hr's? No likey. Otherwise, shorter load times, good.
User avatar
Project Willow
 
Posts: 4798
Joined: Sat May 07, 2005 9:37 pm
Location: Seattle
Blog: View Blog (1)

Re: new expirimental youtube embeding code...

Postby Allegro » Wed May 29, 2013 11:24 pm

Hi, Drew. Thanks for the experimentations. As long as the standard [youtube] button is not removed or altered, then the formatting I use sometimes to minimize a video for allowing text wraps will do fine. I like my experimentations, too :).

Thanks.
~ A.
Art will be the last bastion when all else fades away.
~ Timothy White (b 1952), American rock music journalist
_________________
User avatar
Allegro
 
Posts: 4456
Joined: Fri Jan 01, 2010 1:44 pm
Location: just right of Orion
Blog: View Blog (144)

Re: new expirimental youtube embeding code...

Postby justdrew » Thu May 30, 2013 2:08 am

ok ALL behavior of the old is replicated in the new (I think).

you can center them (or put them to right if you like) and the img-left img-right bbCodes work fine with them. Thanks for reminding me to check on that Allegro.

All three youtube BBcodes have been updated to the new code...
Code: Select all
regular: [youtube][/youtube] . big: [youtube2][/youtube2] . small: [youtube3][/youtube3]


please do not use 'test_yt' anymore

(we can revert back if need arose)

next I'll be seeing if I can get some nice image stacking going and overlay a play button (lower left corner I think) and a light animated 'tv snow' pattern to give additional headsup that these are interactive. (though cool, that may ultimately not be desirable, some of these youtubes have nice preview pictures.


let me know if anyone has any trouble.

Watch if sometime the title text at the bottom is blank, not sure what happens if youtube is slow to dish the xml info out. Still looking into that. But I've not seen a single issue with it so far.
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)

Re: new expirimental youtube embeding code...

Postby Project Willow » Thu May 30, 2013 2:30 am

Now what's with the borders?

Please work with me JD.
User avatar
Project Willow
 
Posts: 4798
Joined: Sat May 07, 2005 9:37 pm
Location: Seattle
Blog: View Blog (1)

Re: new expirimental youtube embeding code...

Postby Allegro » Thu May 30, 2013 3:11 am

Drew, you see, [youtube3] forces the youtube title to dominate the remaining design. In this case, the title is too long.

    This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day.
Art will be the last bastion when all else fades away.
~ Timothy White (b 1952), American rock music journalist
_________________
User avatar
Allegro
 
Posts: 4456
Joined: Fri Jan 01, 2010 1:44 pm
Location: just right of Orion
Blog: View Blog (144)

Re: new expirimental youtube embeding code...

Postby justdrew » Thu May 30, 2013 5:51 am

yeah, I have that fixed in a newer version of 'enhanced youtube embeds'

(and made a test_yt3 to test with... see here:

Allegro » 29 May 2013 23:11 wrote:Drew, you see, [youtube3] forces the youtube title to dominate the remaining design. In this case, the title is too long.

youtube video
This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day. This is a very fine day.
By 1964 there were 1.5 million mobile phone users in the US
User avatar
justdrew
 
Posts: 11966
Joined: Tue May 24, 2005 7:57 pm
Location: unknown
Blog: View Blog (11)
Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 172 guests