Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Video Portlet Kishor Ghule December 23, 2010 9:13 PM
RE: Video Portlet Jelmer Kuperus December 23, 2010 10:27 PM
RE: Video Portlet Dhandapani S December 24, 2010 1:51 AM
RE: Video Portlet Kishor Ghule December 26, 2010 10:13 PM
RE: Video Portlet Jelmer Kuperus December 26, 2010 10:53 PM
RE: Video Portlet Thuy Nguyen January 15, 2011 8:37 PM
RE: Video Portlet Thuy Nguyen January 15, 2011 8:41 PM
RE: Video Portlet gofri _ January 16, 2011 10:44 AM
RE: Video Portlet Gianluca Pindinelli May 12, 2011 7:38 AM
RE: Video Portlet Jignesh Vachhani May 12, 2011 11:28 PM
RE: Video Portlet Gianluca Pindinelli May 13, 2011 12:23 AM
RE: Video Portlet Juan Gonzalez July 29, 2011 9:04 AM
RE: Video Portlet Juan Gonzalez November 17, 2011 5:31 AM
RE: Video Portlet Madhura Raut February 26, 2012 9:28 PM
RE: Video Portlet Juan Gonzalez February 27, 2012 9:50 AM
RE: Video Portlet Madhura Raut February 28, 2012 3:53 AM
RE: Video Portlet Juan Gonzalez February 28, 2012 4:34 AM
RE: Video Portlet Madhura Raut February 28, 2012 8:37 PM
RE: Video Portlet Madhura Raut February 29, 2012 3:23 AM
RE: Video Portlet Juan Gonzalez March 1, 2012 8:34 AM
RE: Video Portlet Madhura Raut March 5, 2012 9:40 PM
RE: Video Portlet Madhura Raut March 5, 2012 10:14 PM
RE: Video Portlet Juan Gonzalez March 6, 2012 2:07 AM
RE: Video Portlet Madhura Raut March 7, 2012 9:11 PM
RE: Video Portlet Juan Gonzalez March 7, 2012 11:43 PM
RE: Video Portlet Juan Gonzalez March 6, 2012 1:55 AM
RE: Video Portlet Juan Gonzalez March 1, 2012 8:36 AM
RE: Video Portlet Madhura Raut March 1, 2012 9:20 PM
RE: Video Portlet Juan Gonzalez March 2, 2012 3:58 AM
RE: Video Portlet Madhura Raut March 5, 2012 1:34 AM
RE: Video Portlet Juhi Kumari February 26, 2012 9:55 PM
Kishor Ghule
Video Portlet
December 23, 2010 9:13 PM
Answer

Kishor Ghule

Rank: New Member

Posts: 13

Join Date: June 18, 2010

Recent Posts

I want to create a video portlet having an inbuilt video player embedded in it to play all types of video format (mainly flv,mp4,mpeg,mpg etc.)
Jelmer Kuperus
RE: Video Portlet
December 23, 2010 10:27 PM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

Thanks for sharing, good luck!
Dhandapani S
RE: Video Portlet
December 24, 2010 1:51 AM
Answer

Dhandapani S

Rank: Regular Member

Posts: 170

Join Date: March 24, 2009

Recent Posts

Hi Kishor,

Herewith I have attached sun-video-portlet war file for your reference. you can play the youtube video as well as your own video as like any format.....

The following code allows you to embed window media player in a web page.
Go to $TOMCAT_HOME\webapps\sun-video-portlet\WEB-INF\jsp\preconfigured.jsp

Paste the following

<div>
<p align="center">
<object width="320" height="290" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1">
<param name="Filename" value="http://localhost:8080/Myvideo.wmv">
<param name="AutoStart" value="False">
<param name="ShowControls" value="True">
<param name="ShowStatusBar" value="False">
<param name="ShowDisplay" value="False"><param name="AutoRewind" value="True">
</object>
</p>
</div>

The Myvideo.wmv should be present in $TOMCAT_HOME/webapps/ROOT

This code works only for IE browsers

I hope it will help you....

Regards

Dhandapani S
Attachments: sun-video-portlet-5.2.0.1.war (632.0k)
Kishor Ghule
RE: Video Portlet
December 26, 2010 10:13 PM
Answer

Kishor Ghule

Rank: New Member

Posts: 13

Join Date: June 18, 2010

Recent Posts

I am using linux. I want the videos to be played in all browsers(chrome,mozilla,IE,opera etc.)
Kindly suggest
Jelmer Kuperus
RE: Video Portlet
December 26, 2010 10:53 PM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

You could use jwplayer, i posted a snippet that describes how to use it a long time ago http://www.liferay.com/community/forums/-/message_boards/message/4738033
Thuy Nguyen
RE: Video Portlet
January 15, 2011 8:37 PM
Answer

Thuy Nguyen

Rank: New Member

Posts: 2

Join Date: January 15, 2011

Recent Posts

Hi - I was just reading this thread and we hvae implemented the Video Portlet using Liferay 6EE. We are using Flowplayer and the video player is displaying on top of other pages (see attached image). Have you ever came across this issue using Flowplayer on IE8? Should we be using window media player instead?

Any assistance would be greatly appreciated.

Thuy


Dhandapani S:
Hi Kishor,

Herewith I have attached sun-video-portlet war file for your reference. you can play the youtube video as well as your own video as like any format.....

The following code allows you to embed window media player in a web page.
Go to $TOMCAT_HOME\webapps\sun-video-portlet\WEB-INF\jsp\preconfigured.jsp

Paste the following

<div>
<p align="center">
<object width="320" height="290" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1">
<param name="Filename" value="http://localhost:8080/Myvideo.wmv">
<param name="AutoStart" value="False">
<param name="ShowControls" value="True">
<param name="ShowStatusBar" value="False">
<param name="ShowDisplay" value="False"><param name="AutoRewind" value="True">
</object>
</p>
</div>

The Myvideo.wmv should be present in $TOMCAT_HOME/webapps/ROOT

This code works only for IE browsers

I hope it will help you....

Regards

Dhandapani S
Attachment

Attachments: video_player.png (41.4k)
Thuy Nguyen
RE: Video Portlet
January 15, 2011 8:41 PM
Answer

Thuy Nguyen

Rank: New Member

Posts: 2

Join Date: January 15, 2011

Recent Posts

Can you use this method if you are streaming FLVS?

Thanks,

Thuy
gofri _
RE: Video Portlet
January 16, 2011 10:44 AM
Answer

gofri _

Rank: Junior Member

Posts: 92

Join Date: March 2, 2007

Recent Posts

Hi,
I've implemented simple Video Portlet using following approach:
3 jsp pages for view available videos, add/edit video and view single video;
flv-files are uploaded in Document Library custom folder, thumbnails auto-generated;
view of the single video is implemented with Flv flash Player. Other options are possible too.

I didn't test it in IE, but I think it should work, maybe with little customization.
Gianluca Pindinelli
RE: Video Portlet
May 12, 2011 7:38 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 33

Join Date: March 17, 2010

Recent Posts

Hi gofry,
can you post your portlet into SVN or send me a basic implementation of that?
I have to create on portlet with the same functionality and if already exist.....emoticon.

Thanks in advance!
Jignesh Vachhani
RE: Video Portlet
May 12, 2011 11:28 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 785

Join Date: March 10, 2008

Recent Posts

The best way is go with flow player (opensource) and create structure and template for showing any video.
so you can easy upload any video with document library and can get it through template.
Gianluca Pindinelli
RE: Video Portlet
May 13, 2011 12:23 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 33

Join Date: March 17, 2010

Recent Posts

Thanks for reply!
Yes, I know that with theme/template/document library I can create a video viewer portlet but I searching for a video_gallery portlet (something like the image_gallery with document_library used for repository, with upload manager and others tools for manage video objects).
Thanks again! emoticon
Juan Gonzalez
RE: Video Portlet
July 29, 2011 9:04 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Hi Gianluca,

This feature is now in liferay 6.1 for document library:

http://issues.liferay.com/browse/LPS-18004

Download it from SVN and check it out.
Juan Gonzalez
RE: Video Portlet
November 17, 2011 5:31 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

FYI, Liferay 6.1 video suppport has been improved and now supports HTML5 (Iphone, Ipad...

Just download latest source and test.

This is the issue in JIRa:

http://issues.liferay.com/browse/LPS-22759
Madhura Raut
RE: Video Portlet
February 26, 2012 9:28 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Hi Gianluca,

This feature is now in liferay 6.1 for document library:

http://issues.liferay.com/browse/LPS-18004

Download it from SVN and check it out.



Hi,

I have downloaded liferay 6.1 but I cant play my video inside the portlet. Can you throw some light on this?
Juhi Kumari
RE: Video Portlet
February 26, 2012 9:55 PM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi Kishore,
See this thread

Regards
Juhi
Juan Gonzalez
RE: Video Portlet
February 27, 2012 9:50 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Madhura Raut:
Juan Gonzalez P:
Hi Gianluca,

This feature is now in liferay 6.1 for document library:

http://issues.liferay.com/browse/LPS-18004

Download it from SVN and check it out.



Hi,

I have downloaded liferay 6.1 but I cant play my video inside the portlet. Can you throw some light on this?



You have to enable Xuggler in Liferay, and you have to install Xuggler in Liferay host OS .

Please read this wiki:

http://www.liferay.com/es/community/wiki/-/wiki/Main/Preview+Generation#section-Preview+Generation-Audio+and+Video+Previews
Madhura Raut
RE: Video Portlet
February 28, 2012 3:53 AM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Hi,

I read tht WIKI link. and performed the stpes accordingly. But currently whenever i upload a video in avi or wmv or mov format at tht time in media gallery it shows me tht video as an image. And whenever I click on tht video to preview it shows me as in the screenshot attached
Attachments: untitled.bmp (2,304.1k)
Juan Gonzalez
RE: Video Portlet
February 28, 2012 4:34 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Madhura Raut:
Hi,

I read tht WIKI link. and performed the stpes accordingly. But currently whenever i upload a video in avi or wmv or mov format at tht time in media gallery it shows me tht video as an image. And whenever I click on tht video to preview it shows me as in the screenshot attached


Ok I know why it doesn't work for you. Xuggler needs the file extension to determine video container, so change video title and add the original file extension.
Madhura Raut
RE: Video Portlet
February 28, 2012 8:37 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Madhura Raut:
Hi,

I read tht WIKI link. and performed the stpes accordingly. But currently whenever i upload a video in avi or wmv or mov format at tht time in media gallery it shows me tht video as an image. And whenever I click on tht video to preview it shows me as in the screenshot attached


Ok I know why it doesn't work for you. Xuggler needs the file extension to determine video container, so change video title and add the original file extension.



I tried what you said. But still not working at my end :-(
Madhura Raut
RE: Video Portlet
February 29, 2012 3:23 AM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Madhura Raut:
Juan Gonzalez P:
Madhura Raut:
Hi,

I read tht WIKI link. and performed the stpes accordingly. But currently whenever i upload a video in avi or wmv or mov format at tht time in media gallery it shows me tht video as an image. And whenever I click on tht video to preview it shows me as in the screenshot attached


Ok I know why it doesn't work for you. Xuggler needs the file extension to determine video container, so change video title and add the original file extension.



I tried what you said. But still not working at my end :-(


Here is one more thing I tried:-

I had placed portal-ext.properties in tomcat-7.0.23\webapps\ROOT\WEB-INF. So i shifted it to tomcat-7.0.23\webapps\ROOT\WEB-INF\classes and got the following errors on my log:


Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorre
ct
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 12 more
11:17:35,659 ERROR [VideoProcessorImpl:366] com.liferay.portal.kernel.exception.
SystemException: com.liferay.portlet.documentlibrary.NoSuchFileException: docume
nt_thumbnail/19/251/11003/11566.jpg
com.liferay.portal.kernel.exception.SystemException: com.liferay.portlet.documen
tlibrary.NoSuchFileException: document_thumbnail/19/251/11003/11566.jpg
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generate
ThumbnailXuggler(VideoProcessorImpl.java:291)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generate
Video(VideoProcessorImpl.java:360)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.generateV
ideo(VideoProcessorImpl.java:75)
at com.liferay.portlet.documentlibrary.util.VideoProcessorUtil.generateV
ideo(VideoProcessorUtil.java:31)
at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageLi
stener.doReceive(VideoProcessorMessageListener.java:34)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDes
tination.java:101)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.liferay.portlet.documentlibrary.NoSuchFileException: document_thu
mbnail/19/251/11003/11566.jpg
at com.liferay.portlet.documentlibrary.store.BaseStore.addFile(BaseStore
.java:108)
at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(Stor
eProxyImpl.java:52)
at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.ad
dFile(SafeFileNameStoreWrapper.java:70)
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStore
Impl.java:98)
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStore
Impl.java:171)
at com.liferay.portlet.documentlibrary.store.DLStoreUtil.addFile(DLStore
Util.java:186)
at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.addFi
leToStore(DLPreviewableProcessor.java:184)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.storeThum
bnailImages(VideoProcessorImpl.java:186)
at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generate
ThumbnailXuggler(VideoProcessorImpl.java:282)
... 10 more

In my portal-ext.properties file i have:
xuggler.enabled=true
Juan Gonzalez
RE: Video Portlet
March 1, 2012 8:34 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Are you using eclipse and/or windows? You can try to startup server using scripts instead eclipse:

http://stackoverflow.com/questions/2893970/fail-to-launch-application-createprocess-error-87-cant-use-shorten-classpath
Juan Gonzalez
RE: Video Portlet
March 1, 2012 8:36 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Be sure to install proper Xuggler version. If you are on windows 64 bits, you have to download the correct file to install it (32 bits and 64 bits install files are different).
Madhura Raut
RE: Video Portlet
March 1, 2012 9:20 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Be sure to install proper Xuggler version. If you are on windows 64 bits, you have to download the correct file to install it (32 bits and 64 bits install files are different).



Hi,
Yes my xuggler version is also proper. Is it that xuggler needs to be installed in the same directory as that of liferay?
Juan Gonzalez
RE: Video Portlet
March 2, 2012 3:58 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Madhura Raut:
Juan Gonzalez P:
Be sure to install proper Xuggler version. If you are on windows 64 bits, you have to download the correct file to install it (32 bits and 64 bits install files are different).



Hi,
Yes my xuggler version is also proper. Is it that xuggler needs to be installed in the same directory as that of liferay?


No, you don't have to. But after install make sure to set the correct environment variables (XUGGLE_HOME, etc), and make sure that variables are available when starting up your Liferay server.
Madhura Raut
RE: Video Portlet
March 5, 2012 1:34 AM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Madhura Raut:
Juan Gonzalez P:
Be sure to install proper Xuggler version. If you are on windows 64 bits, you have to download the correct file to install it (32 bits and 64 bits install files are different).



Hi,
Yes my xuggler version is also proper. Is it that xuggler needs to be installed in the same directory as that of liferay?


No, you don't have to. But after install make sure to set the correct environment variables (XUGGLE_HOME, etc), and make sure that variables are available when starting up your Liferay server.



IT IS DISPLAYING VIDEO AS AN IMAGE AS MENTIONED EARLIER>>>> plzzzzz help me out with this.... do u hav xuglers exe?
Madhura Raut
RE: Video Portlet
March 5, 2012 9:40 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Are you using eclipse and/or windows? You can try to startup server using scripts instead eclipse:

http://stackoverflow.com/questions/2893970/fail-to-launch-application-createprocess-error-87-cant-use-shorten-classpath



Hi,

I have downloaded the installable for xuggler from http://com.xuggle.s3.amazonaws.com/xuggler/xuggler-3.4.FINAL/xuggle-xuggler.3.4.1012-win32-setup.exe
I am starting my server using the script... Please verify my environment variables:

XUGGLE_HOME: C:\Program Files\Xuggle
Path: C:\Program Files\Xuggle\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Windows Imaging\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin

I have enabled xuggler from control panel of the portal.

I have following things in my portal-ext.properties:
dl.file.entry.preview.video.container=mp4

dl.file.entry.preview.video.player=alloy

Is there ANYTHING ELSE i need to configure? Like the library path or anything?
Madhura Raut
RE: Video Portlet
March 5, 2012 10:14 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

i have updated my portal-ext.properties with:
dl.file.entry.preview.video.mime.types=video/avi,video/mp4,video/mpeg,video/ogg,video/quicktime,video/x-flv,video/x-ms-wmv,video/x-msvideo,application/x-shockwave-flash,application/x-shockwave-flash2-preview
Juan Gonzalez
RE: Video Portlet
March 6, 2012 1:55 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Paste here/attach complete log (with errors).

Did you add the environment variables to you server scripts? (Tomcat,...)

Are you sure these variables are available after starting up your server?

This isn't a Liferay issue, it has to do with Xuggler installation and environment variables within J2EE servers.
Juan Gonzalez
RE: Video Portlet
March 6, 2012 2:07 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Madhura,

I guess this is a problem due to long classpath in Windows, which is needed for executing a fork process to convert videos.

Please, modify this property in portal-ext.properties and set it to false:

dl.file.entry.preview.fork.process.enabled=false
Madhura Raut
RE: Video Portlet
March 7, 2012 9:11 PM
Answer

Madhura Raut

Rank: Junior Member

Posts: 41

Join Date: November 11, 2010

Recent Posts

Juan Gonzalez P:
Madhura,

I guess this is a problem due to long classpath in Windows, which is needed for executing a fork process to convert videos.

Please, modify this property in portal-ext.properties and set it to false:

dl.file.entry.preview.fork.process.enabled=false


Hi.
Please find attached log files for liferay as well as tomcat logs as well as portal-ext.properties file.
Attachments: liferay.2012-03-08.log (245.5k), localhost_access_log.2012-03-08.txt (6.8k), portal-ext.properties (0.3k)
Juan Gonzalez
RE: Video Portlet
March 7, 2012 11:43 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2794

Join Date: October 28, 2008

Recent Posts

Madhura Raut:
Juan Gonzalez P:
Madhura,

I guess this is a problem due to long classpath in Windows, which is needed for executing a fork process to convert videos.

Please, modify this property in portal-ext.properties and set it to false:

dl.file.entry.preview.fork.process.enabled=false


Hi.
Please find attached log files for liferay as well as tomcat logs as well as portal-ext.properties file.


1
2127.0.0.1 - - [08/Mar/2012:05:07:34 +0000] "GET /documents/19/0/video.JPG?version=1.0&t=1330941781661&imageThumbnail=1 HTTP/1.1" 304 -


Seems you uploaded wrong file, at least it seems you uploaded a JPG, which isn't a video. Upload file with proper extension.