New AUTO EMBED VIDEO/AUDIO CLIPS add on

Started by Rico, October 08, 2008, 06:28:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rico

I installed a new beta addon to the forum tonight.  It should make linking or embedding video and audio on the forum better and easier.  I'll paste all the technical junk below, but please let me know if anything seems to be working goofy, not working, etc. over the next few days.  The big plus to this is Youtube videos will show up here in high quality - if a high quality version of them exists.  To see an example of that see the "Chuck" video I posted.

The simple way to link now is just to post the URL.  You don't need that long embed code normally.  Let me know if you have questions.


Ok - here's the nitty/gritty,....
(most of this doesn't matter, but I thought some might want to read the details)


Introduction
Automatically embed video and audio clips in your SMF forum posts from OVER 180+ sites including YouTube/DailyMotion/MetaCafe/GoogleVideo/BBC Iplayer (uk only) from urls. Without the need for bbcode or messy html.

Just copy the url from your address bar into a post (like http://www.youtube.com/watch?v=B8XC7idFyvE#noexternalembed)and let the mod will do the rest. Its the ultimate user-friendly way of posting clips.

Sites whose url schemes can't be supported easily, require the mod to do a 'lookup' on posting to get the actual embed url/filename in order for embedding to work. This may not work on all servers. (Such as those with PHP Safe Mode and/or OpenBaseDir enabled).  The admin panel will test you whether or not this function will work.

Supported Video/Audio Clip Sites [New in v4.0 shown in bold] [* Denotes sites requiring lookups]
o Supports 158 Video Sites including;
YouTube, YouTube (Playlists), Dailymotion, Google Video, BBC News (UK Only)*, BBC Iplayer (UK Only), MegaVideo, MetaCafe, Veoh, 123video, 5min Life Videopedia, 9You, ABC News*, AdultSwim, AniBoom, AOL Uncut, Archive.org*, Atom*, Bebo*, Blip*, BoFunk*, Break (SEO Style)*, Break (User Content)*, Brightcove.com, Brightcove.tv, Broadcaster*, CarPix Tv, Cellfish, Clarin, Clip.vn, ClipFish (Old), ClipFish (New), ClipJunkie, ClipLife, ClipMoon, Clipser, ClipShack, Cold-Link, CollegeHumor, ComedyCentral(Inc. TheDailyShow), Crackle, CrunchyRoll*, Current*, Dailyhaha, Dave.tv, DotSub (w/o Captions), DoubleViking*, dropshots.com, Dv.ouou, EASportsWorld*, EbaumsWorld Videos*, ESPN, EyeSpot (Mixes), EyeSpot (Single), EyeSpot (Widgets), FunnyOrDie, G4TV, GameKyo, GameSpot, GameTrailers (Inc. User Movies), Gametube.org, GameVideos.1up, GarageTv*, Gloria, Glumbert, GodTube, GoFish (Videos), GoFish (Channels), GotGame*, GrassRoots ItvLocal, GrindTv*, Guba, TheHub, Hulu (Usa Only)*, Humour*, Video.i.ua*, IGN, IMDB*, Imeem (Video)*, ImageShack, IndyaRocks, Izlesene, Jokeroo, Jubii Tv, JujuNation Video, JumpCut, Kewego, Koreus, Last.fm (Videos), Libero, LiveLeak, LiveVideo, Machinima (Old), Machinima (New), Video.mail.ru, Milliyet*, MoFile, MotionBox, MSN Live/Soapbox, MtvU (Usa Only), MyNet, MySoccerMedia*, MyShows.cn/SeeHaha.com*, MySpaceTv, MyVideo, MyVi*, M Thai, NhacCuaTui, OnSmash, Photobucket, PikNikTube, Putfile, Rambler, RawVegas, Revver, RuTube, SevenLoad, ShareView, Sharkle*, Smotri, Snotr, SouthPark Studios, Space.tv.cctv.com, Spike, SportsLine (CBS Sports), StageHD*, Streetfire*, StupidVideos*, TagTélé, TinyPic, Tm-Tube, TrailerAddict*, TrTube*, Trilulilu, Tu.tv*, Tudou, UOL VideoLog, UUME, u-Tube, VideoJug*, videos.sapo, Vidiac, Viddler*, Videa, VideoNuz*, VidiLife*, VidMax, Vimeo, Vidivodo*, VSocial (Type1), VSocial (Type2), WeGame, Wipodo*, Yahoo Video*, Yahoo Video HK, Yahoo Music Videos, YouKu, You.Video.Sina.com.cn

o Supports 16 Audio Sites including;
BooMp3, Deezer, EbaumsWorld Audio*, GoEar, iJigg, Imeem (Music)*, Jamendo, JujuNation Audio, Last.fm (Audio), Mp3tube*, MusOpen*, Passionato (Single Preview), Passionato (Playlist Preview), Project Playlist, Seeqpod, Songza*

o Supports 4 Other Sites including;
Imeem (Playlists)*, NewGrounds*, Orb, VoiceThread

Features [New in v4.0 shown in bold]
o No Theme/Template Edits required. Therefore No manual edits will be required.
o Works for ALL languages.  If we don't have translations of the language strings, it will load the English version rather than having missing text strings.
o Contains translations
- English/English-utf8
- English_British/English_British-utf8
I would appreciate translations.  Please attach/submit any translations of the language strings in the support topic for the mod.
o [Completely New in v4.0] Admin Configuration panel enabling you to Enable/Disable what sites to embed.
Other settings included to enable/disable;
- Master Setting (to enable/disable mod)
- Lookups
- Youtube Checks (checks on POSTING whether a YouTube link is allowed to be embedded)
- YouTube Higher quality videos
- Include url below the video (for sites without a clickable link/button in the video)
- Embedding in Quotes
- Fixing of html objects. (For n00b users who try posting the full embed html provided by sites.  Mod replaces it with an embeddable link [safely and securely])
- Aevac Debug mode for admins only:
- Embed localfiles (Excludes Attachments) (Divx/Flash/Real/WindowsMedia/Avi)
o Saving sites, generates an optimized definitions file with only enabled sites included, and only the information that the settings will use.
(For example, if lookups were disabled, the lookup lines would not be included)
o Lookup functionality - grab the actual video url/filename, enabling sites to be supported which could not be previously
- On POSTING, the mod checks the post for links to sites that require lookups
- This may not work on all servers (Such as PHP Safe Mode and/or OpenBaseDir enabled)
- Doing a lookup is likely to count towards your host bandwidth limits. (But it should only be eg 20kb each time)
- Lookups will NOT affect pre-existing posts.  You'll need to edit the post to make it do the lookup.
o Use [noembed][/noembed] bbcode to prevent links being converted to embedded clips
o Disabled for Printer Friendly pages & Signatures (& on SMF 2.0 inside the WYSIWYG)
o Safe from security standpoint
- They can't just embed ANY object hosted ANYWHERE, it only works for trusted supported sites or local files.
- Properly validates/sanitizes/parses the video id before including it in the url
- Disables script access (allowScriptAccess="never")
o FYI, External videos will NOT consume your bandwidth
o This mod will work happily with my YouTube BBCode mod installed at the same time. They won't conflict.

Since the mod only converts active links, it is recommended to have the setting "Automatically link posted URLs" enabled.
(via Admin > Posts & Topics > Bulletin Board Code)
Other than that there are no admin settings with this mod. Uninstall the mod to disable it.

Rico

Oh - I forgot to say that any old videos posted on the site from Youtube should show up as high quality now automatically - if they are available in that format (the Birthday videos I did are I know).  It depends on the type and quality of the file that is originally uploaded to Youtube.  I try to upload high quality stuff and it gets converted to Flash - but the High Quality video can be seen.  The way you know is by looking for the little words "watch in high quality" on the bottom right of the video box.  Here's a picture to show where you look.


Meds

Brilliant, great idea Rico. Another reason why this Forum and web site is amazing.

Rico

Thanks - and as some have noticed things like the podcast mp3's now have little players in the posts too.

moyer777

How come mine don't have the little player??  Did I do something wrong?

I have been and always will be, your friend.
Listen to our podcast each week http://www.takehimwithyou.com

Rico

Quote from: moyer777 on October 09, 2008, 02:24:42 PM
How come mine don't have the little player??  Did I do something wrong?

Mine?  If you mean .mp3 stuff it only works I think with files on my host server.

moyer777


I have been and always will be, your friend.
Listen to our podcast each week http://www.takehimwithyou.com

Rico

He didn't want to make a plugin that would allow you to link to all kinds of  MP3 files out there.  So it just works on the audio that is on your own web site.