Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sudarshan Kumar
How to play video in liferay
January 9, 2012 4:20 AM
Answer

Sudarshan Kumar

Rank: Junior Member

Posts: 42

Join Date: August 12, 2011

Recent Posts

Hi

Can any one help me on how to play video file in liferay. Is there any video player in liferay


Thanks in advance
Sudarshan
Jitendra Rajput
RE: How to play video in liferay
January 9, 2012 4:29 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

Here you go

http://www.liferay.com/community/forums/-/message_boards/message/3479449
Sudarshan Kumar
RE: How to play video in liferay
January 9, 2012 4:30 AM
Answer

Sudarshan Kumar

Rank: Junior Member

Posts: 42

Join Date: August 12, 2011

Recent Posts

Thanks Jitendra for ur reply
Juan Gonzalez
RE: How to play video in liferay
January 9, 2012 5:05 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

Now Liferay supports out of the box video playing (HTML5).

See this: http://www.liferay.com/es/community/wiki/-/wiki/Main/Preview+Generation#section-Preview+Generation-Audio+and+Video+Previews
Sudarshan Kumar
RE: How to play video in liferay
January 9, 2012 8:41 PM
Answer

Sudarshan Kumar

Rank: Junior Member

Posts: 42

Join Date: August 12, 2011

Recent Posts

Hi Juan,

Thanks for your reply. The link which you have send is related to liferay 6.1. I am using liferay 6.0.5.


thanks
Sudarshan
Juan Gonzalez
RE: How to play video in liferay
March 16, 2012 1:01 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2797

Join Date: October 28, 2008

Recent Posts

Yep. If you can't upgrade you would have to implement a solution.
Vilmos Papp
RE: How to play video in liferay
March 16, 2012 1:26 PM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Liferay Master

Posts: 521

Join Date: October 21, 2010

Recent Posts

You can use a 3rd party video player like this one: Longtail I used it at my former company and worked fine for us.
Vilmos Papp
RE: How to play video in liferay
March 16, 2012 1:27 PM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Liferay Master

Posts: 521

Join Date: October 21, 2010

Recent Posts

Of course you can use any other video players, there's no difference from the portal's perspective.
Hemant Kumar Singh
RE: How to play video in liferay
December 27, 2012 9:05 PM
Answer

Hemant Kumar Singh

Rank: New Member

Posts: 8

Join Date: August 16, 2012

Recent Posts

Vilmos Papp:
Of course you can use any other video players, there's no difference from the portal's perspective.

Hi Vilmos.........
could u please tell me how you integrated longtail player with your liferay
please rly asap

thanks
Vilmos Papp
RE: How to play video in liferay
January 17, 2013 1:37 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Liferay Master

Posts: 521

Join Date: October 21, 2010

Recent Posts

You can simply embed it into a velocity template for example, or create a custom portlet for it in plugins SDK. In my situation the former solution was requested.
Chris Tantalo
RE: How to play video in liferay
June 25, 2014 10:48 AM
Answer

Chris Tantalo

Rank: Junior Member

Posts: 33

Join Date: August 21, 2012

Recent Posts

code example please.
Vilmos Papp
RE: How to play video in liferay
June 26, 2014 3:39 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Liferay Master

Posts: 521

Join Date: October 21, 2010

Recent Posts

Hi,

See this page: http://influxis.com/how-to-embed-the-jw-player/ there are different ways to embed the player, when I used it, I used the swfobject variant.
Krzysztof Gołębiowski
RE: How to play video in liferay
June 26, 2014 4:05 AM
Answer

Krzysztof Gołębiowski

Rank: Liferay Master

Posts: 508

Join Date: June 25, 2011

Recent Posts

Hello Everybody,
I used FlowPlayer. It was very simple installation, I just put flowplayer files to the liferay theme, added <script type="text/javascript" src="${themeDisplay.getPathThemeRoot()}/flowplayer/flowplayer-version.min.js"></script> to portal_normal.vm and instructed users to add this snippet to their Web Content when they want to embed video:

1<a href="http://link_to_video" id="player"> </a></p>
2<script>
3    /*<![CDATA[*/
4      flowplayer("player","/my-theme/flowplayer/flowplayer-version.swf");
5    /*]]>*/
6  </script>


Regards,
KG
Pier Paolo Ramon
R: How to play video in liferay
June 26, 2014 4:39 AM
Answer

Pier Paolo Ramon

Rank: Junior Member

Posts: 82

Join Date: May 25, 2010

Recent Posts

You should also use PortalUtil.getStaticResourceURL to ensure that time stamps and minification options are added to the URL. That way not only you'll see the page loading faster but also using a CDN will be much easier. Thanks for sharing the code with us!

Sent from my iPhone with Liferay.com Forums