Go
Not registered? Sign up!

Viral 2.0 -- customizing the embed code

Google Translate
4 posts | return to the Plugins forum | get the rss feed for this thread

Nov. 04, 2009Matthew Hoy

I was wondering if it was at all possible add some default coding to the embed code to allow clickable links above the embedded code and possibly Google AdSense ads below. Specifically, I have in mind the embed coding provided by Comedy Central's videos.

<table style='font:11px arial; color:#333; background-color:#f5f5f5' cellpadding='0' cellspacing='0' width='360' height='353'><tbody><tr style='background-color:#e5e5e5' valign='middle'><td style='padding:2px 1px 0px 5px;'><a target='_blank' style='color:#333; text-decoration:none; font-weight:bold;' href='http://www.comedycentral.com/shows/secret_girlfriend/index.jhtml'>Secret Girlfriend</a></td><td style='padding:2px 5px 0px 5px; text-align:right; font-weight:bold;'>Weds 10:30pm / 9:30c</td></tr><tr style='height:14px;' valign='middle'><td style='padding:2px 1px 0px 5px;' colspan='2'<a target='_blank' style='color:#333; text-decoration:none; font-weight:bold;' href='http://www.comedycentral.com/videos/index.jhtml?videoId=254446&title=preview-sam-works-the-room'>Preview - Sam Works the Room<a></td></tr><tr style='height:14px; background-color:#353535' valign='middle'><td colspan='2' style='padding:2px 5px 0px 5px; width:360px; overflow:hidden; text-align:right'><a target='_blank' style='color:#96deff; text-decoration:none; font-weight:bold;' href='http://www.comedycentral.com/'>www.comedycentral.com</a></td></tr><tr valign='middle'><td style='padding:0px;' colspan='2'><embed style='display:block' src='http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:254446' width='360' height='301' type='application/x-shockwave-flash' wmode='window' allowFullscreen='true' flashvars='autoPlay=false' allowscriptaccess='always' allownetworking='all' bgcolor='#000000'></embed></td></tr><tr style='height:18px;' valign='middle'><td style='padding:0px;' colspan='2'><table style='margin:0px; text-align:center' cellpadding='0' cellspacing='0' width='100%' height='100%'><tr valign='middle'><td style='padding:3px; width:33%;'><a target='_blank' style='font:10px arial; color:#333; text-decoration:none;' href='http://www.jokes.com'>Joke of the Day</a></td><td style='padding:3px; width:33%;'><a target='_blank' style='font:10px arial; color:#333; text-decoration:none;' href='http://comedians.comedycentral.com/'>Stand-Up Comedy</a></td><td style='padding:3px; width:33%;'><a target='_blank' style='font:10px arial; color:#333; text-decoration:none;' href='http://www.comedycentral.com/games/index.jhtml'>Free Online Games</a></td></tr></table></td></tr></tbody></table>

Specifically, they're putting a table around the video and populating it. I'm not even interested in filling these fields dynamically. I'd just like to be able to put a live link to the originating site of the video above the embedded player.

Is this possible to do with the current version of the viral plug-in? Does the embed plug-in allow it? If not, is there another player on the market that would allow this?

Nov. 04, 2009hobbs

 
You can add extra HTML to the embed string.

For instance, the Sharing plugin (for which the source is available), allows 999999 characters.

See: http://developer.longtailvideo.com/trac/browser/plugins/sharing/com/jeroenwijering/plugins/Sharing.as

For other plugins, you would have to test the allowable string length, which I suppose is at least several thousand characters.

Perhaps one of the Longtail Video developrs can give you an exact answer for the Viral-2 plaugin or else you can just experiment a bit.

Your table code plus some average embedding code is 2669 characters — no problem.

Try it here: http://willswonders.myip.org:8074/Simple_Viral-2.html

Nov. 04, 2009Matthew Hoy

Hobbs, many thanks. I suspected it could be done, I just didn't know how easy/complicated it might be.

Nov. 04, 2009hobbs

 
Everything's easy — after you've done it once!

    Good Luck!

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.