Solved

Getting Macromedia Flash Movie to run in Websphere Portal 6.0 portlet

Posted on 2008-10-05
3
1,866 Views
Last Modified: 2013-12-12
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

0
Comment
Question by:NMATRIX9
3 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22648674
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.
0
 
LVL 1

Accepted Solution

by:
NMATRIX9 earned 0 total points
ID: 22656305
Hello Blue Genie,

This issue has already been resolved, my apologies for not closing this earlier it seems that for IBM WebSphere Portal Server 6.0, the solution is to declare in your object code a version < 7.0.  I'm not sure why that is, unless websphere portal itself has a built in flash plugin for flash rendering to the client which is independents of the clients plugin.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,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>
0
 

Expert Comment

by:Gopal2
ID: 37539110
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&amp;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&amp;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.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article shows how to convert a multi-page PDF file into multiple image files, with one image file created for each page of the PDF. It does this by utilizing an excellent, free software package called GraphicsMagick. The solution is amazingly s…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
The goal of the tutorial is to teach the user how to how to record live broadcast.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now