lfnetwork.com mark read register faq members calendar

Thread: Embeddable video options expansion
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 12-19-2009, 03:52 PM   #1
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,713
Forum Veteran Helpful! 
Embeddable video options expansion

Might I humbly suggest incorporating additional code to expand the options for embedding video?

The first is for Game Trailers videos - http://www.vbulletin.org/forum/showthread.php?t=212472

The second is Youtube HD videos - http://www.vbulletin.org/forum/showt...hreadid=201698
DarthParametric is offline   you may: quote & reply,
Old 12-19-2009, 07:39 PM   #2
stoffe
Mostly dormant
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,834
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by DarthParametric View Post
Might I humbly suggest incorporating additional code to expand the options for embedding video?
Modified the [youtube] tag to take the movie clip type as a parameter. Valid values are no parameter (default, like before), hq or hd.

Usage examples:

Normal/small video:
[youtube]http://www.youtube.com/watch?v=rXVT0Khzdhs[/youtube]


High quality (HQ) video:
[youtube=hq]http://www.youtube.com/watch?v=s_ZaHNHIQOA[/youtube]


HD quality video:
[youtube=hd]http://www.youtube.com/watch?v=o4mqJvnuiUo[/youtube]


If you use it make sure you set the correct type or it will likely look crap. I'll have a look at GameTrailers later and see how their embeds work. Shouldn't be too hard to add I think.


mt
stoffe is offline   you may: quote & reply,
Old 12-19-2009, 07:46 PM   #3
Astor
It's Thornhill!
 
Astor's Avatar
 
Status: Super Moderator
Join Date: Mar 2008
Location: Warwickshire, UK
Posts: 3,632
Current Game: The Old Republic
LFN Staff Member Forum Veteran Helpful! 
Great work, stoffe!






Astor is offline   you may: quote & reply,
Old 12-20-2009, 12:58 AM   #4
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,713
Forum Veteran Helpful! 
Cheers. But you know you don't need the whole link right? Just the video ID. For example, using the video in the TFU2 thread, this code:

HTML Code:
[youtube=hd]6CssTT_Llo0[/youtube]
Gives this:

View page
YouTube Video
DarthParametric is offline   you may: quote & reply,
Old 12-20-2009, 07:34 AM   #5
stoffe
Mostly dormant
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,834
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by DarthParametric View Post
Cheers. But you know you don't need the whole link right? Just the video ID.
You can use either a full youtube url (for a normal viewing page) or the video ID, for convenience. Figured it was easier for people to be able to just cut and paste the normal URLs from elsewhere, while retaining how embed bbcodes on other forums work as legacy for those who are used to that.


mt
stoffe is offline   you may: quote & reply,
Old 12-28-2009, 10:07 AM   #6
stoffe
Mostly dormant
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,834
Helpful! 10 year veteran! Notable contributor 
I've created a BBcode for GameTrailers.com video embeds now too. Seems to work OK for the most part but I've noticed slightly peculiar behavior with some videos that I haven't been able to figure out the cause for yet. Like with the [youtube] tag you can specify the video to embed either by putting a full GT video URL within the tag, or just the video ID, whichever you prefer.


For example, either of these produce the same result:

[gametrailers]http://www.gametrailers.com/video/siren-alley-bioshock-2/58165[/gametrailers]

[gametrailers]58165[/gametrailers]


If anyone has an idea of why some videos end up bigger than the flash box they're played in let me know.


(Also disallowed the use of [youtube] and [gametrailers] tags in member signatures. Sorry to ruin people's fun but it does add significant amounts of bloat to have videos embedded at the end of every post you make. )


mt
stoffe is offline   you may: quote & reply,
Old 12-28-2009, 10:51 AM   #7
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,713
Forum Veteran Helpful! 
Cheers stoffe. Kinda lame they don't let you directly embed the HD version though.
DarthParametric is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Forum Help & Feedback Center > Embeddable video options expansion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.