Link to home
Start Free TrialLog in
Avatar of NMATRIX9
NMATRIX9Flag for Canada

asked on

Getting Macromedia Flash Movie to run in Websphere Portal 6.0 portlet

Been stuck with this issue for a about a week now.
Essentially it's a simple task, but Websphere Portal 6 says differently I'm trying to embed the following code:  PLEASE REFER TO CODE SNIPPET

Inside the jsp file "test_file_exchange.jsp"

On the portal server a portlet is referencing that jsp, BUT when I view the portal, that particular PORTLET does not display anything (all I see is the portlet title bar and nothing else).  BUT it gets even stranger I tried viewing the portlet in FIREFOX and it displays sporadically (if I make a minor change to the jsp file it stops displaying in FF, if I make another change and refresh it begins to display FF albeit randomly).  I've googled for info on embedding Flash objects in a portlet in websphere portal and DISPLAYING it but surprisingly I can find almost no information what so ever on accomplishing this simple task for a portlet?
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="20%" height="20%" id="CSI_Flash_ENG" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="CSI_Flash_ENG.swf" /><param name="quality"
value="high" /><param name="bgcolor" value="#ffffff" />    <embed
src="CSI_Flash_ENG.swf" quality="high" bgcolor="#ffffff" width="20%"
height="20%" name="CSI_Flash_ENG" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

Open in new window

Avatar of blue-genie
blue-genie
Flag of South Africa image

this helped somebody

http://groups.google.com/group/ibm.software.websphere.portal-server/tree/browse_frm/month/2006-02?_done=%2Fgroup%2Fibm.software.websphere.portal-server%2Fbrowse_frm%2Fmonth%2F2006-02%3F&

>>

If your .swf file is packaged inside the portlet, you need to encode the
URL the same way you would encode the URL to a .gif file for an IMG tag.
ASKER CERTIFIED SOLUTION
Avatar of NMATRIX9
NMATRIX9
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gopal2
Gopal2

Hi,

  I too am facing a similar issue with my portlet JSP code. I get to see the picture, but cannot see the video controls. However, on the very first page down load, I can click on the lower left most corner and can listen to the audio, but not able to "see" the video. Not knowing what I am missing in this code snippet:
____________________________________________________________________________
<div>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="496" height="407" id="moviePlayer">
            <param name="movie" value="/wps/themes/html/abc/flash/abc_moviePlayer.swf" />
            <param name="wmode" value="opaque" />
            <param name="flashvars" value="movieURL=http://abc.cachefly.net/abc/abc-qPCR.mp4&posterIMG=/wps/themes/html/abc/images/abc-qPCR.jpg" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="/wps/themes/html/abc/flash/abc_moviePlayer.swf" width="496" height="407">
                  <param name="flashvars" value="movieURL=http://abc.cachefly.net/abc/abc-qPCR.mp4&posterIMG=/wps/themes/html/abc/images/abc-qPCR.jpg" />
            <!--<![endif]-->
            <video controls="controls" width="496" height="368" poster="/wps/themes/html/abc/images/abc-qPCR.jpg" preload>
                         <source src="http://abc.cachefly.net/abc/abc-qPCR.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
                         <source src="http://abc.cachefly.net/abc/abc-qPCR.ogv" type='video/ogg; codecs="theora, vorbis"' />
                </video>
            <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
      </object>
</div>
________________________________

Can you point me to right direction please?

Thanks.