Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Video Portlet like YouTube and take video from Document Library Portlet
Hi,
How can I create a video portlet as follows :-
1. Similar to you tube.
2. Should take video files from document library portlet
Also, is there any converter that will be associated with Liferay to convert the video formats to .swf or .flv on the fly when user uploads videos to the document library portlet?
Thanks in advance.
How can I create a video portlet as follows :-
1. Similar to you tube.
2. Should take video files from document library portlet
Also, is there any converter that will be associated with Liferay to convert the video formats to .swf or .flv on the fly when user uploads videos to the document library portlet?
Thanks in advance.
Hello! i'm working in this too.
I've achieved it, using Windows Media Player embebbed in web page, but only works in IExplore, not in firefox.
I've followed these instructions
but the point is that it doesn't work for me in Firefox.
This is my HTML code for the Structure-Theme created:
Many thanks!
I've achieved it, using Windows Media Player embebbed in web page, but only works in IExplore, not in firefox.
I've followed these instructions
but the point is that it doesn't work for me in Firefox.
This is my HTML code for the Structure-Theme created:
<object id="MMPlayer1" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="238" width="240" align="absmiddle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param name="FileName" value="$video.getData()">
<param name="ShowControls" value="0">
<param name="ShowStatusBar" value="0">
<param name="ShowDisplay" value="0">
<param name="DefaultFrame" value="Slide">
<param name="PlayCount" value="1">
<param name="Autostart" value="1">
<embed src="$video.getData()" width="290" height="320" autostart="1" loop="0" align="absmiddle" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" showcontrols="1" showdisplay="0" showstatusbar="1"> </object>Many thanks!
Hi manuel,
If you remove that classid then it will work for you and also you have to add one more parameter mediafile.
Thanks
If you remove that classid then it will work for you and also you have to add one more parameter mediafile.
Thanks
You need to go with a FLV player. Windows media player has too many problems working with all browsers. FLV players are very easy to use and there are many free samples out there.
Michael Poznecki:
You need to go with a FLV player. Windows media player has too many problems working with all browsers. FLV players are very easy to use and there are many free samples out there.
Hello Jignesh and Michael!
I've tried without the classid and there is no result.
I'm trying now with flv players ('flowplayer' look nice) and i think the problem is when accesing DocumentLibrary. I get success with internet files but no luck with DL files. I've tried local files in a HTML example and got success
My VM template's code:
<script type="text/javascript" src="/html/themes/my_theme/javascript/flowplayer-3.1.2.min.js"></script>
<p align="center">
<a href="$video.getData()" style="display:block;width:320px;height:290px" id="player"> </a>
</p>
<!-- this will install flowplayer inside previous A- tag. -->
<script>
flowplayer("player", "/html/themes/my_theme/video/flowplayer-3.1.2.swf");
</script>I have the scripts and .swf player in those locations, so i think the problem is accesing DL from the player embeded in firefox.
'$video.getData()' refers to a DL link, p.e. "/c/document_library/get_file?uuid=16b8ef99-0b76-451c-b92d-708da057e068&groupId=10802"
Many thanks for your comments!
Hey
Encode the Document Library URLs using http://meyerweb.com/eric/tools/dencoder/
Yours
Tuomo
Manuel de la Peña:
'$video.getData()' refers to a DL link, p.e. "/c/document_library/get_file?uuid=16b8ef99-0b76-451c-b92d-708da057e068&groupId=10802"
Encode the Document Library URLs using http://meyerweb.com/eric/tools/dencoder/
Yours
Tuomo
Thanks Manuel de la Peña.It is working fine.
For encoding we can use $escapeTool.url like this
<a href="$escapeTool.url($video.getData())" >
Regards
Sakir
For encoding we can use $escapeTool.url like this
<a href="$escapeTool.url($video.getData())" >
Regards
Sakir
Workaround can be
use aui-swf plugin, configure the "flashVars" param.
include flvplayer to be rendered by aui, and the flv file from document library is passed as source to flvplayer.
Webcontent Structure & template is very helpful in this.
AlloyUI SWF
use aui-swf plugin, configure the "flashVars" param.
include flvplayer to be rendered by aui, and the flv file from document library is passed as source to flvplayer.
Webcontent Structure & template is very helpful in this.
AlloyUI SWF