Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Flash video display with video controls portlet suresh vadlamudi February 28, 2011 3:28 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 4:18 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 4:18 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 5:08 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 5:22 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 5:33 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 5:58 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 6:22 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 6:50 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 7:13 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 7:20 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 7:22 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 7:37 AM
RE: Flash video display with video controls portlet gofri _ February 28, 2011 7:44 AM
RE: Flash video display with video controls portlet suresh vadlamudi February 28, 2011 8:07 AM
RE: Flash video display with video controls portlet gofri _ March 1, 2011 12:56 AM
RE: Flash video display with video controls portlet suresh vadlamudi March 1, 2011 2:53 AM
RE: Flash video display with video controls portlet Parag Negi November 22, 2011 3:34 AM
RE: Flash video display with video controls portlet Parag Negi November 22, 2011 3:36 AM
RE: Flash video display with video controls portlet Juan Gonzalez November 22, 2011 3:53 AM
RE: Flash video display with video controls portlet Gianluca Pindinelli May 14, 2012 1:12 AM
RE: Flash video display with video controls portlet Juan Gonzalez May 14, 2012 1:22 AM
RE: Flash video display with video controls portlet Gianluca Pindinelli May 14, 2012 1:34 AM
RE: Flash video display with video controls portlet Juan Gonzalez May 14, 2012 1:39 AM
RE: Flash video display with video controls portlet Gianluca Pindinelli May 14, 2012 1:46 AM
suresh vadlamudi
Flash video display with video controls portlet
February 28, 2011 3:28 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Hi Friends,

Could any one send me the portlet war or any link to download Flash video display with video controls portlet.I mean the video display window should contain the Stop/Start buttons to control the video play.

Thanks & Regards
Suresh.Vadlamudi
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 4:18 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

You can embed flv Player in your jsp view, or directly in web content.
Something like that:

 1<p align="center">
 2    <script type="text/javascript">
 3    playerFile = "<%=portletUrl%>/videos/html/flv/flvplayer/player_flv_maxi.swf";
 4    flv = "<%=fileUrl%>";
 5    playerSize = "457x333";
 6    title="title";
 7    </script>
 8    <script type="text/javascript" src="<%=portletUrl%>/video/html/flv/flvplayer/flashplug.js">
 9    </script>   
10</p>


Of course, You should download player_flv_maxi.swf and flashplug.js and place them where needed.
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 4:18 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

could you please tell me the procedure how to embed that in my jsp .Actually i tried in different ways ..but no success..please do me this faviour.
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 5:08 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Can u send me flashplug.js file.
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 5:22 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

It is based on the tutorial here: http://flv-player.net/players/maxi/documentation/


My file:

 1/* Flash player javascript configurator*/
 2//////////////////////////////
 3if (typeof playerFile == 'undefined') { playerFile = 'flv/player_flv_maxi.swf'; }
 4if (typeof flv != 'undefined') { mcflashvars = 'flv='+flv; }
 5if (typeof playerSize == 'undefined') { playerSize = '457x333'; }
 6var psep = playerSize.indexOf("x");
 7var playerWidth = playerSize.substring(0,psep);
 8var playerHeight = playerSize.substring(psep+1);
 9if (typeof title != 'undefined') { mcflashvars += '&title='+title; }
10// common parameters
11mcflashvars += '&showstop=1&showvolume=1&showtime=1&showfullscreen=1&autoload=1&buffer=4&buffermessage=&buffershowbg=0&margin=1&showloading=always&showiconplay=1&playeralpha=90&iconplaybgalpha=90&showtitleandstartimage=1';
12function mccode() {
13var str='';
14str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,115,0" width="'+playerWidth+'" height="'+playerHeight+'">\n';
15str+='<param name="movie" value="'+playerFile+'">';
16str+='<param name="allowScriptAccess" value="always">';
17str+='<param name="quality" value="high">';
18str+='<param name="allowFullScreen" value="true">';
19str+='<param name="FlashVars" value="'+mcflashvars+'">\n';
20str+='<embed src="'+playerFile+'" width="'+playerWidth+'" height="'+playerHeight+'" quality="high" allowFullScreen="true" allowscriptaccess="always" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" FlashVars="'+mcflashvars+'"><\/embed>\n';
21str+='<\/object>';
22document.write(str);
23}
24mccode();
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 5:33 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Is this the code which i need to place in my flashplug.js.If u don't mind please help me to achive this.It is very urgent.
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 5:58 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

yes
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 6:22 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Hi gofri

I tried your code.But i am finding some problem.In IE portlet not responding. In Firefox portlet is showing vedio dispay window with control buttons.But my vedio is not coming in the window.
Here is the code i used

<%@ page import="javax.portlet.PortletRequest"%>
<%@ include file="/init.jsp" %>
<portlet:defineObjects />

<html>
<head>
</head>
<body>
<p align="center">
<script type="text/javascript">
playerFile ="<%=request.getContextPath()%>/js/player_flv_maxi.swf";
flv = "http://localhost:8080/documents/10156/d55b5694-bf44-4079-9233-834f7e095223";
playerSize = "457x333";
title="title";
</script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/flashplug.js">
</script>
</p>

</body>
</html>
Please correct me if any mistakes.

Suresh.Vadlamudi
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 6:50 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

If browser shows controls, that means that js and flash player are possibly ok. Are You sure, that your file is accessible using provided url?
You can check the source of following page: http://www.ccg-bg.com/web/guest/colors_nets (almost at the end) and download js file. It works under IE.
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 7:13 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Yes i can able to access my .swf file located at http://localhost:8080/documents/10156/d55b5694-bf44-4079-9233-834f7e095223 independently from the browser but not from the portlet.Also i checked the link which u copied.Is this the same Js file which u r talking about(http://xslt.alexa.com/site_stats/js/t/a?url=www.ccg-bg.com).Yes i downloaded this "a" file.Please let me know how to use this.

Also i observed that thr is some problem with this line classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000 which is part of flashplug.js" .Please suggest me if any thing need to be done

Suresh.Vadlamudi
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 7:20 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

ops, I see. You should use flv-movies, not swf.
As far as I know, there are at least 2 ways to play movie in browser:
1. Pack movie as a .swf file and place it in page. This way is not preferable, since it loads entire movie, before playing it.
2. Use small .swf player (like player_flv_maxi.swf) to play .flv movies. This is better, I think, since it loads a way faster.

Sorry for misleading You, the alexa js has nothing to do with it, I meant the script with flv-related stuff.
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 7:22 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

In classid there is a problem - message board replaced symbols : + D with emoticon emoticon . You can download correct .js file from the link above.
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 7:37 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Could u please mention the link from where i need to get the flashplug.js .Actually i didn't see any flashplug.js for download at http://flv-player.net/players/maxi/documentation/.
And also as per the above message : is this code which we did is not useful to display swf movies? Could you please tell me some clear details how to make it to work for swf movies/vedios.

i should really say thanks for your support/intrest to resolve my issue.please stay with me to achive this

Suresh.Vadlamudi
gofri _
RE: Flash video display with video controls portlet
February 28, 2011 7:44 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

You can download example js from here: http://www.ccg-bg.com/html/flash/flashplug.js

Yes, sorry for misleading You, it was not obvious for me that You are trying to play .swf files.
Usually, flv files are used for movies. I'm not sure You'll able to "add play/stop controls" to any .swf file, since it can be any flash program. It is better to think about converting your videos to .flv, but of course, these are my thoughts.
suresh vadlamudi
RE: Flash video display with video controls portlet
February 28, 2011 8:07 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

I added new flashplug.js still i am finding same issue with IE
gofri _
RE: Flash video display with video controls portlet
March 1, 2011 12:56 AM
Answer

gofri _

Rank: Junior Member

Posts: 94

Join Date: March 2, 2007

Recent Posts

Is it working in Firefox?
Check movie in the site mentioned above with IE for reference.
suresh vadlamudi
RE: Flash video display with video controls portlet
March 1, 2011 2:53 AM
Answer

suresh vadlamudi

Rank: Junior Member

Posts: 35

Join Date: January 20, 2011

Recent Posts

Yes..once i restart the server it is working fine in both the browsers.Really thanks for the solution.

Do u have any solution to display both the .flv,.swf videos in this portlet.right now i can able to show only .flv videos.If any ideas please share here.

Thanks and Regards
Suresh.Vadlamudi
Parag Negi
RE: Flash video display with video controls portlet
November 22, 2011 3:34 AM
Answer

Parag Negi

Rank: Junior Member

Posts: 71

Join Date: August 31, 2011

Recent Posts

Hi Suresh,

I need to do the same and play video files .flv, .swf, but don't know the way.

Can you please tell me the exact process.

Thanks,
Parag
Parag Negi
RE: Flash video display with video controls portlet
November 22, 2011 3:36 AM
Answer

Parag Negi

Rank: Junior Member

Posts: 71

Join Date: August 31, 2011

Recent Posts

gofri _:
You can download example js from here: http://www.ccg-bg.com/html/flash/flashplug.js

Yes, sorry for misleading You, it was not obvious for me that You are trying to play .swf files.
Usually, flv files are used for movies. I'm not sure You'll able to "add play/stop controls" to any .swf file, since it can be any flash program. It is better to think about converting your videos to .flv, but of course, these are my thoughts.


Hi Gofri,

I need to play video files on liferay page(possible under some portlet)

Can you please explaine me the process to do so.
I seem to be lost.

Thanks and Regards,
Parag Negi
Juan Gonzalez
RE: Flash video display with video controls portlet
November 22, 2011 3:53 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1749

Join Date: October 28, 2008

Recent Posts

Hi guys,

There will be a HTML5 video player in Liferay 6.1

Just download latest sources and install Xuggler (search for "HTML5" in Liferay JIRA).
Gianluca Pindinelli
RE: Flash video display with video controls portlet
May 14, 2012 1:12 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 29

Join Date: March 17, 2010

Recent Posts

Hi Juan,
I using embedded video player into my portlets and work well but I have only a problem: certain parameters (ie. allowFullScreen, play - for autoplay) not seem to work; others parameters instead (ie. bgColor) work well.
I inspect code into src (LF 6.1.0 ga1 CE) and I copy & paste the same syntaxt but nothing to do: these parameters not working!

If inspect html that is created by documents & media gallery (from control panel) seem to be working but not into media gallery display.

Where is the problem? I forgot to import some files? Which player is used in Liferay?

Thanks in advance! ;)
Juan Gonzalez
RE: Flash video display with video controls portlet
May 14, 2012 1:22 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1749

Join Date: October 28, 2008

Recent Posts

Gianluca Pindinelli:
Hi Juan,
I using embedded video player into my portlets and work well but I have only a problem: certain parameters (ie. allowFullScreen, play - for autoplay) not seem to work; others parameters instead (ie. bgColor) work well.
I inspect code into src (LF 6.1.0 ga1 CE) and I copy & paste the same syntaxt but nothing to do: these parameters not working!

If inspect html that is created by documents & media gallery (from control panel) seem to be working but not into media gallery display.

Where is the problem? I forgot to import some files? Which player is used in Liferay?

Thanks in advance! ;)


In Liferay 6.1 HTML5 player is used, using a flash player if HTML5 video isn't available in browser.
Gianluca Pindinelli
RE: Flash video display with video controls portlet
May 14, 2012 1:34 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 29

Join Date: March 17, 2010

Recent Posts

Hi Juan,
video player work very well! Is avaible into browser and work fine! The problem is only for the 2 parameters ("allowfullscreen" and "play"): if setted to "true" does not change anything.... why?
The player is swf (loaded from /html/js/aui/aui-video/assets/player.swf).

Thanks!
Juan Gonzalez
RE: Flash video display with video controls portlet
May 14, 2012 1:39 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1749

Join Date: October 28, 2008

Recent Posts

How do you know that variables exists for that player?

Try with controls="true"
Gianluca Pindinelli
RE: Flash video display with video controls portlet
May 14, 2012 1:46 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 29

Join Date: March 17, 2010

Recent Posts

I know that by inspect the liferay sources...the problem is only into my portlet and media galley display, not into documents and media (into control panel).
There is something in the control panel theme or something like that?