Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Getting Macromedia Flash Movie to run in Websphere Portal 6.0 portlet

Posted on 2008-10-05
3
Medium Priority
?
1,881 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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&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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

670 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