Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bhavik Kama
how to play video in my custom portlet?
October 11, 2012 1:35 AM
Answer

Bhavik Kama

Rank: Junior Member

Posts: 55

Join Date: September 23, 2012

Recent Posts

Hi,

I have to know if there is any way to preview my video file in my custom portlet i have some URL and i want to play that in my custom portlet.How can i achieve this?
Bart Simpson
RE: how to play video in my custom portlet?
October 11, 2012 1:48 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

you can embed the player in html, and pass the video file source dynamically or statically as per your requirement.
http://www.mediacollege.com/video/format/windows-media/streaming/embed.html
http://www.mattsbits.co.uk/item-126.html

You can google for you specific format.
Hope it helps
Bhavik Kama
RE: how to play video in my custom portlet?
October 11, 2012 6:05 AM
Answer

Bhavik Kama

Rank: Junior Member

Posts: 55

Join Date: September 23, 2012

Recent Posts

OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="sample.mp4">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="URL AM GIViNG HERE" NAME="MediaPlayer" WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>


I have done this way but in my jsp file nothing playing up?WHY?
Bart Simpson
RE: how to play video in my custom portlet?
October 11, 2012 9:19 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

Do you see any kind of error in console? Server and Browser console? Is the source of the media file reachable? How to embed objects you can find a lot of tutorials by googleing. I suppose there isn't much liferay specific there.