0 Replies Latest reply on Jul 10, 2009 12:13 PM by Pawel R

    Embeded Media Player in FF

    Pawel R Newbie

      Hi,


      I'm developing an application in SEAM 2.1 and Richfaces. My app must provide an interface to play video from embedded player (Media Player or Quicktime).
      I have a problem with embedding Media player in Firefox 3.5 (and possibly all previous versions).


      The code below works in IE 8.0 but it's not working in FF where the player is not rendered. What am I doing wrong ? What's interesting if you copypaste this code into a separate plain HTML file it works in both FF and IE.



      <f:verbatim>
           <object id='mediaPlayer' width="640" height="480"
                classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
                codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
                standby='Loading Microsoft Windows Media Player components...'
                type='application/x-oleobject'>
                <param name='fileName' value="#{VideoFilesTreeBean.nodeTitle}" />
                <param name='animationatStart' value='true' />
                <param name='transparentatStart' value='true' />
                <param name='autoStart' value="true" />
                <param name='showControls' value="true" />
                <param name='loop' value="true" />
                <embed type='application/x-mplayer2'
                     pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
                     id='mediaPlayer' name='mediaPlayer' displaysize='8' autosize='-1'
                     bgcolor='darkblue' showcontrols="true" showtracker='-1'
                     src="file://///localhost/video/24.05.2009.mpg" autostart="true"
                     designtimesp='5311' loop="true" showdisplay='0' showstatusbar='-1'
                     videoborder3d='-1' width="640" height="480">
                </embed> 
           </object>
      </f:verbatim>