[close]Firefox users we wanted to take this space to let you know what Mozilla, the company that makes Firefox has been doing, and it's not good. Mozilla recently forced it's CEO to resign because he had, 5 years ago, donated $1,000 to a pro-family political group. Apparently Mozilla is intolerant of anyone that disagrees with their Liberal view of politics. To read more please visit WhyFirefoxIsBlocked.com. (We aren't blocking Firefox, but we feel it is important to let you know what's going on.)

Wednesday, November 10, 2010

I Want to Watch Videos in Liferay! Part I

So you want to create a portlet that runs in Liferay 5.2 that will play videos stored in your Document Library.

There are a series of hurdles that you'll have to overcome to be able to do this, however. Nothing too horrible, but it's easy to underestimate what a pain it can be.

First, Liferay is kind of picky about what kinds of files can be uploaded into it. By default it won't accept videos of certain formats and the file size is fairly limited anyway. Luckily, this is an easy fix.

Do you have a portal-ext.properties file in your Liferay home directory? No? Create one. If you don't know what this file is for, it's a configuration file that will override the settings that are in Liferay by default. Create the empty file, name it portal-ext.properties, and add the following line to it:

dl.file.max.size=3072000

This will give you more maneuvering room for uploading videos. You can set that to whatever value is best for your project.

Next, you have to tell Liferay what file formats to accept. Add this line: