Fórum
portlets
naveen chevuri, modificado 13 Anos atrás.
portlets
New Member Postagens: 13 Data de Entrada: 23/12/10 Postagens Recentes
hi..
how to add documents,video to a portlet.
how to add documents,video to a portlet.
Hitoshi Ozawa, modificado 13 Anos atrás.
RE: portlets
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
You can use Web Content porlet to show documents. You can use Flash or YouTube portlet to view flv files. Source code are also included with these portlets.
Vishal Nakrani, modificado 12 Anos atrás.
RE: portlets
New Member Postagens: 2 Data de Entrada: 26/04/11 Postagens Recentesnaveen chevuri:
hi..
how to add documents,video to a portlet.
Use Web Content Porlet to show Video.
Try This.
<div>
<h3>Video Portlet</h3>
<div>
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr>
<td>
<OBJECT id='mediaPlayer' width="400" height="250"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="MyVideo.mp4">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="420" height="285"
src="MyVideo.mp4" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>
</td>
</tr>
</table>
<!-- ...end embedded WindowsMedia file -->
</div>
<a href="MyVideo.mp4" style='font-size: 85%;' target='_blank'>Launch in external player</a>
</div>
Regards,
Vishal Nakrani
(Java Developer)