Dashboard > JA-SIG > Home > Clearinghouse Contributions > VideoPortlet - YouTube
JA-SIG Log In   View a printable version of the current page.
VideoPortlet - YouTube

Added by Brad Rippe , last edited by Brad Rippe on Oct 01, 2007
Labels: 
(None)

I've updated the videoportlet from Sun's Portlet Repository to use the new GData api. The portlet can be configured to use a default account to pull favorite videos from until the user sets an account. This allows all users to get video content when they initially login. The default account can be configured through the portlet.xml.

<init-param>
     <description></description>
     <name>defaultYouTubeAccount</name>
     <value>someAccount</value>
</init-param>

Users can modify the default account when the favorites are displayed for any account. When the user modifies the account to pull favorites from, the portlet saves this account in the preferences. Thus, the next time the user logs in, the portlet displays the favorites for the account saved in the preferences.

NOTES: The two requirements for a proxy and developer id are not longer necessary. The portlet should be able to pull content without either requirement.

Install

Download the videoportlet.war. Run ant deployPortletApp -DportletApp=[path to the war]\videoportlet.war. Modify videoportlet/WEB-INF/portlet.xml to use a default account. Start your app server, then register the portlet with Portlet definition ID=videoportlet.Youtube Portlet.  Enjoy!

Powered by a free Atlassian Confluence Open Source Project License granted to Java Architectures Special Interest Group. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators