How to embed video in a post

For posts that don't quite fit in the other sections.
User avatar
PÕQ~Technut
PÕQ Leader
PÕQ Leader
Posts: 19725
Joined: Tue Jul 29, 2008 3:14 pm
Location: Canada
Contact:

How to embed video in a post

Unread postby PÕQ~Technut » Wed Jul 22, 2009 3:33 am

I made a few new BBCodes so it will be easier to embed YouTube, Xfire and Google video in your posts.


YouTube
To add regular (4:3 ratio) YouTube video the code is:
[vyt]videoID[/vyt]
To add widescreen (16:9 ratio) YouTube video the code is:
[vytw]videoID[/vytw]

For YouTube videos the videoID is the mixture of letters and numbers at the end of a YouTube URL, eg:
http://www.youtube.com/watch?v=OQDGXWWSlfI&feature=related

Code: Select all

[vyt]OQDGXWWSlfI[/vyt]


Xfire
To add Xfire video the code is:
[vx]videoID[/vx]

For Xfire videos the videoID is the mixture of letters and numbers at the end of a Xfire URL, eg:
http://www.xfire.com/video/e6180/

Code: Select all

[vx]e6180[/vx]


Google
To add Google video the code is:
[vg]videoID[/vg]

For Google videos the videoID is the mixture of letters and numbers at the end of a Google URL, eg:
http://video.google.com/videoplay?docid=-7405459896212623122

Code: Select all

[vg]-7405459896212623122[/vg]


MetaCafe
To add MetaCafe video the code is:
[vmc]videoURL[/vmc]

For MetaCafe videos the videoURL is the URL seen in the address bar, eg:
http://www.metacafe.com/watch/259457/halo_wars/
Note the trailing "/". Most browsers will add this automatically when the page loads. If not, you will need to manually add it.

Code: Select all

[vmc]http://www.metacafe.com/watch/259457/halo_wars/[/vmc]
Image
PÕQ~Technut | Mike
Clan Leader

The real problem is not
whether machines think
but whether men do.
- B.F.Skinner

Image
Image
Image
Hidden:

=CE=Alteran
Registered User
Registered User
Posts: 734
Joined: Sun Apr 26, 2009 11:15 pm
Contact:

Re: How to embed video in a post

Unread postby =CE=Alteran » Wed Jul 22, 2009 3:58 am

I'm glad that you finally finished the code. And it's good to know it's working

Guys, please be sure to use the code correct to the video's aspect ratio! :D


YouTube Video


User avatar
PÕQ~jimbo
PÕQ Member
PÕQ Member
Posts: 862
Joined: Wed Aug 20, 2008 9:14 pm
Location: Mendocino, CA 95460
Contact:

Re: How to embed video in a post

Unread postby PÕQ~jimbo » Tue Oct 27, 2009 3:38 pm

thanks tech :love

YouTube Video

Reality is merely an illusion, albeit a very persistent one. Albert Einstein

"Whoever said the pen is mightier than the sword obviously never
encountered automatic weapons." -Gen. Mac Arthur

”Imagination lays the tracks for the reality train to follow.” – Caroline Casey

=CE=Alteran
Registered User
Registered User
Posts: 734
Joined: Sun Apr 26, 2009 11:15 pm
Contact:

Re: How to embed video in a post

Unread postby =CE=Alteran » Thu Nov 05, 2009 12:06 am

After a couple of questions, I've developed a Bookmarklet for Firefox that pulls the video IDand pops it up in an alert.

Here's how.
In Firefox, right click your bookmarks toolbar, and click "New Bookmark".
Name it YouTube ID, and under location, put this.

Code: Select all

javascript:alert(yt.getConfig('SWF_ARGS').video_id);

Now when you click this bookmarklet when on a youtube page pulls the videoID

User avatar
conck
Registered User
Registered User
Posts: 237
Joined: Sat Aug 02, 2008 2:33 pm
Location: Transylvania
Contact:

Re: How to embed video in a post

Unread postby conck » Thu Dec 03, 2009 7:56 am

Hi Tech!
Please let me know how I can embed a metacafe.com video on forum. I make a short movie about my last mobile app I worked on.
Thanks.
Knowledge means power: Image

User avatar
Xæthon
Registered User
Registered User
Posts: 4342
Joined: Sun Aug 24, 2008 1:42 pm
Location: United Kingdom

Re: How to embed video in a post

Unread postby Xæthon » Thu Dec 03, 2009 11:11 am

Well, at the bottom where it says "Embedded Code", copy that and take the first link from it, with .swf at the end.
For example:
<embed src="http://www.metacafe.com/fplayer/sy-1200156526/oasis_champagne_supernova_official_music_video.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_sy-1200156526"> </embed><br><font size = 1><a href="http://www.metacafe.com/watch/sy-1200156526/oasis_champagne_supernova_official_music_video/">Oasis - Champagne Supernova (Official Music Video)</a> - <a href="http://www.metacafe.com/">The best video clips are right here</a></font>

The text highlighted in yellow, copy that.

Next, take the FLASH BBCode tags, and make it like this:

Code: Select all

[flash=400,345]http://www.metacafe.com/fplayer/sy-1200156526/oasis_champagne_supernova_official_music_video.swf[/flash]

[flash=400,345]http://www.metacafe.com/fplayer/sy-1200156526/oasis_champagne_supernova_official_music_video.swf[/flash]
Yellow being the link from above, and red being the size [400,345].

So it will look end up like this:
Hidden:
Image
Image

James | Former Senior Admin | 13/04/2007 - 06/07/2010
History of Myself and PÕQ Clan wrote:An Original Member of the Clan, First Generation (as some would say).
Statistics and former positions held:
Hidden:


Image
Avatar for the good ol' days
Image

User avatar
conck
Registered User
Registered User
Posts: 237
Joined: Sat Aug 02, 2008 2:33 pm
Location: Transylvania
Contact:

Re: How to embed video in a post

Unread postby conck » Thu Dec 03, 2009 11:17 am

Thanks a lot Xaeton!
Knowledge means power: Image

User avatar
PPS~GHoST
Registered User
Registered User
Posts: 92
Joined: Sun Nov 29, 2009 1:53 pm
Location: Virginia/ United States

Re: How to embed video in a post

Unread postby PPS~GHoST » Thu Dec 03, 2009 4:49 pm

thanks technut...this really helps! :smilee:
Image
Thanks to PÕQ~STØRM


ImageThanks to PÕQ~bckwerds


My environment is fear, i revel in your panicked screams, i strike with deadly precision and skill, from your deepest darkest nightmares i am spawned, to cripple you in terror...

=CE=Alteran
Registered User
Registered User
Posts: 734
Joined: Sun Apr 26, 2009 11:15 pm
Contact:

Re: How to embed video in a post

Unread postby =CE=Alteran » Thu Dec 03, 2009 6:10 pm

I've made the process a LOT easier

MetaCafe videos now have a BBCode

Code: Select all

[vmc]http://www.metacafe.com/watch/259457/halo_wars/[/vmc]


MetaCafe Video


You simply place the video URL (Not the embed code!) into the BBcode

Code: Select all

[vmc]videoURL[/vmc]


EDIT: Changed "mc" to "vmc" for uniformity.

User avatar
conck
Registered User
Registered User
Posts: 237
Joined: Sat Aug 02, 2008 2:33 pm
Location: Transylvania
Contact:

Re: How to embed video in a post

Unread postby conck » Sun Dec 06, 2009 7:12 pm

Didn't work any of that codes... Not on this forum. I was trying to embed video on this forum (ignore the language pls).
Knowledge means power: Image


Return to “Off Topic”

Who is online

Users browsing this forum: No registered users and 6 guests

cron