Currently Being Moderated

blip.tv Macro

VERSION 9

Created on: Jul 18, 2007 5:21 PM by Aaron Johnson - Last Modified:  Sep 4, 2008 5:25 PM by tim.neuwerth

blip.tv Macro

This macro makes it easy to display blip.tv movies in documents, blog posts, and threads. Here's the syntax:

 

{bliptv:id=<blip.tv_id>}

 

 

Here's an example of how it's used:

 

{bliptv:id=Samjive-PluginDayAtJiveSoftware641}

 

 

This would generate the following HTML output in the published document:

 

&lt;object type="application/x-shockwave-flash"

data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=http ://blip.tv/file/get/Samjive-PluginDayAtJiveSoftware641.flv&source="

width="400" height="294" wmode="transparent"&gt;

&lt;param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=htt p://blip.tv/file/get/Samjive-PluginDayAtJiveSoftware641.flv&source=" /&gt;

&lt;/object&gt;

 

Technologies

The simple example code here illustrates how you can use a plugin to display media in Clearspace content.

 

What's Included

  • build.xml -- Ant build file.

  • plugin.xml -- Plugin descriptor required by Clearspace.

  • src/com.jivesoftware.clearspace.plugins.bliptv.BlipTVMacro.java -- Macro class that gets the media and generates HTML needed to display it.

 

Building and Deploying the Code

The Ant build.xml file at the root of the plugin includes a build.plugins target you can use to compile the code and package it into a JAR file. There's also a deploy.plugins target that copies the JAR into the &lt;jiveHome&gt;/plugins directory that accompanies your Clearspace distribution. Paths into your test Clearspace distribution assume that this plugin project is in the standalone Clearspace distribution at: &lt;root&gt;/plugins/plugins/helloworld. Be sure to update the targets if you're testing another way, such as with the Clearspace WAR distribution.

 

Be sure to read the notes below about dependencies. The JAR files you'll need are included as part of Clearspace.

 

Running the Samples

  1. Build and deploy the code.

  2. Open Clearspace and create a wiki document. Add whatever text you like, but be sure to add the bliptv macro using the syntax described above.

  3. Preview or publish the document to see its output.

 

You should see the media displayed and ready to play.

 

Dependencies

In addition to requiring Java 1.5, this code requires a few of the libraries you'll find in the WEB-INF/lib directory of your Clearspace installation, listed below.

 

  • clearspace-&lt;version&gt;.jar

 

If you'd rather deploy the plugin manually, you can do that in one of two ways:

 

  • Just copy the plugin JAR file into the &lt;jiveHome&gt;/plugins directory. Your running Clearspace instance will deploy it automatically.

  • Open the admin console and navigate to System &gt; Settings &gt; Plugins, then browse for your plugin JAR file.

 

Clearspace 1.X Plugin Files

 

Clearspace 2 Plugin Files

Average User Rating
(0 ratings)




Ben Mehling Ben Mehling  says:

Is there a 2.5 compatible version of this plugin available?  Thanks!

rrutan rrutan  says in response to Ben Mehling:

Agreed, from what I can tell it looks as though blip.tv may have changed their template.  In 2.0, this worked fine...but all of our previous videos no longer work.  Any chances we can get a quick update to this...I'll see if I can pull the changes together and comments as such.

 

Found this workaround in the time being in the community discussions:

http://www.jivesoftware.com/jivespace/message/143761#143761

Download Plugin for

Plugin Info

  • bliptv
  • by Aaron Johnson
  • Compatible with 1.x
  • Last updated: 6/1/2008

More Like This

  • Retrieving data ...