The Source for Java Technology Collaboration




Video Portlet

Description

The VideoPortlet includes two portlets. One is a YoutubePortlet? and the other is SingleVideoPortlet. Youtube portlet displays the favourite videos of the configured user. SingleVideoPortlet displays a single video.

Prerequisites for Deployment

None. The portlet can be directly deployed into any JSR 168 compliant container without any additional configuration.

Requirements:

  1. Developer Id is required to connect to Youtube.com from the portlet. Go to [http://www.youtube.com/dev] and click on Developer Profile. Enter the details and you will be provided with the Developer ID.

  1. If you are behind a firewall the proxy needs to be set. Set these jvm options in your webserver/application server.
-Dhttp.proxyHost="proxy host"
-Dhttp.proxyPort="proxy port"

Deployment Steps

  1. Specify the Developer ID in the portlet.xml
  2. Deploy the VideoPortlet to your Portlet Container. For your convenience, the "How To" section on project wiki page will help you get started with a few popular portlet containers.
  3. Click on "Configre my Youtube account details".
  4. Enter the youtube LoginID? and click Save.

Tested On

  • Open Source Portlet Container 1.0
  • Apache Pluto 1.0.1

Functionality

Here is a screenshot of the YouTube portlet. The portlet displays all the favorites for a given youtube user id.

The SingleVideoPortlet is preconfigured by the administrator and there is option for the user to chnage the displayed video.

Topic VideoPortlet . { Edit | Ref-By | Printable | Diffs r1 | More }
 XML java.net RSS

Revision r1 - 20 Oct 2007 - 21:46:41 - Main.tmueller
Parents: WebHome