Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    May 2003
    Location
    MI
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why doesn't Player.controls.stop() work in Firefox?

    Hi - I am scripting a fancy interface using several windows media players. I have an onClick statement that contains this:

    PediatricPlayer.controls.Stop();

    which works fine in IE but gets me

    "PediatricPlayer.controls has no properties"

    in Firefox.

    I have the player defined as:

    Code:
     
    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "PediatricPlayer" name= "PediatricPlayer" width = "300" >		  
                <PARAM name = "URL" value = "http://myserver.com/video1/pediatric.asx">
                <PARAM name = "captioningID" value = "CapText1">
                <PARAM name = "canSeek" value = "true">
                <embed TYPE="application/x-mplayer2" 
    id="PediatricPlayer" 
    name="PediatricPlayer"
    src="http://myserver.com/video1/pediatric.asx" 
    width="300"
     height="290" 
    captioningID="CapText1" 
    canSeek="true"> </embed> 
    </OBJECT>
    What am I missing here?

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by EllenM1
    PediatricPlayer.controls.Stop();

    What am I missing here?
    it should be document.getElementById('PediatricPlayer').controls.Stop();, that's why!
    *keep it simple (TM)

  • #3
    New Coder
    Join Date
    May 2003
    Location
    MI
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Still not working

    I am now getting
    document.getElementById("PediatricPlayer").controls has no properties

    I am wondering if this is one of those "activeX" problems or something - where it simply doesn't recognize the existence of the player. It is also giving me an error in the viewer:

    Cannot open 'mms://myserver.com/myvideo.wmv'. (Error=80070057)

    When I paste the mms:// url into the address box in a new firefox window, it brings up the video just fine in a separate windows media player window.

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    to be honest, i've never wasted my time on Windows Media player (it's not cross-platform compatible) in webpages, so I really wouldn't know.

    have you bothered to search google for an answer? i bet it's there
    *keep it simple (TM)

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it just occurred to me. you should be probably be using the embed tag with FF, and not the object one. if you make that change it should help. bear in mind my initial answer ... you'll still need to use that whatever works tag-wise
    *keep it simple (TM)

  • #6
    New Coder
    Join Date
    May 2003
    Location
    MI
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks very much

    LOL, yep, I have been busily googling - only resorted to you folks as a last resort because it seemed like I was doing the correct stuff according to what I had been finding out there. I had tried every variation on using name, ID, changing how I specified the DOM path to the object - and I think it just doesn't see that player's controls.

    However on going thru the FF forums which I just found, I believe it just ain't never gonna work unless I install the Active X plugin in FF. I do indeed have the embed tag stuff in there, but I have decided to provide an alternate link or use a sniffer to direct them there.

    Unfortunately our institution is enamored with WMP, so I am stuck with it.
    Here are some of the links to some of the info I found on the Firefox forum, in case others are searching for answers about windows media player and firefox.

    Thanks again,

    Ellen
    ___________________________

    http://forums.mozillazine.org/viewto...=626789#626789

    http://forums.mozillazine.org/viewto...=783567#783567

    http://forums.mozillazine.org/viewto...=805938#805938

    http://forums.mozillazine.org/search...39973&start=30

    http://forums.mozillazine.org/viewto...=windows+media

    http://forums.mozillazine.org/viewto...=controls+stop

  • #7
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by jbot
    it just occurred to me. you should be probably be using the embed tag with FF
    No you don't. Firefox uses the object tag correctly. You need the embed element for Internet Explorer.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    	<head>
    		<title>Quicktime Movie</title>
    	</head>
    	<body>
    		<object type="video/quicktime" data="/videos/test.mov" width="480px" height="279px">
    			<!-- This is fore Internet Explorer but works for others -->
    			<embed src="/videos/test.mov" type="video/quicktime" width="480px" height="279px"></embed>
    		</object>
    	</body>
    </html>

  • #8
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by hemebond
    You need the embed element for Internet Explorer
    nonsense. IE6 put paid to that when it was launched 3 years ago, since at that time it was ceasing support of Netscape's plugin architecture.
    *keep it simple (TM)

  • #9
    New Coder
    Join Date
    May 2003
    Location
    MI
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Still working on this

    After a hiatus, I got back to this, cleaned up the code, which is below, and got the embedded player syntax right.
    To see it in action (use IE for PC to see it acting right) go to:

    http://thedesignspace.net/MT2archive...deo1/index.htm

    It works well in IE for PC, which is no big surprise. However I am concerned with all the other browsers. Upon clicking any tab in the interface I get:

    "Error: document.getElementById(deselectedPlayer).controls has no properties
    Source File: http://thedesignspace.net/MT2archive...deo1/index.htm
    Line: 15

    from the Netscape Javascript console. I am assuming it is simply not finding anything to drop into the variable "deselectedPlayer" within the function call in the onClick statement:
    My function looks like this:
    Code:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    var selectedPlayer = ''; 
    var deselectedPlayer ='';
    var selectedLayer = '';
    var deselectedLayer = '';
    function turnOffCurrentPlayer(deselectedPlayer, selectedLayer, deselectedLayer, selectedPlayer)
    { 
    document.getElementById(deselectedPlayer).controls.Stop();
    document.getElementById(selectedLayer).style.visibility = 'visible';
    document.getElementById(deselectedLayer).style.visibility = 'hidden'; 
    document.getElementById(selectedPlayer).controls.Play(); 
     return false;
    }
    -->
    </script>
    My onClick statement looks like this, and I have tried to attach it both to <a> tags and <td> tags with the same results:
    Code:
     onClick="turnOffCurrentPlayer('PediatricPlayer', 'Adolescent', 'Pediatric', 'AdolescentPlayer');"
    In IE for PC, I get no javascript errors. In Netscape, I get errors, and the videos all play at once. I have experimented around with all sorts of combinations of quotes around "deselectedPlayer" or around the actual variable definitions within the onclick statements, such as ('PediatricPlayer',...etc) or (PediatricPlayer,...etc)

    Anyone that can shed more light on what I am doing wrong?



    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>tabbed Windows Media Player interface</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    var selectedPlayer = ''; 
    var deselectedPlayer ='';
    var selectedLayer = '';
    var deselectedLayer = '';
    function turnOffCurrentPlayer(deselectedPlayer, selectedLayer, deselectedLayer, selectedPlayer)
    { 
    document.getElementById(deselectedPlayer).controls.Stop();
    document.getElementById(selectedLayer).style.visibility = 'visible';
    document.getElementById(deselectedLayer).style.visibility = 'hidden'; 
    document.getElementById(selectedPlayer).controls.Play(); 
     return false;
    }
    -->
    </script>
    
    <link href="tabbedVideoInterface.css" rel="stylesheet" type="text/css">
    </head>
        
    <body >
    <TABLE "border="0" cellspacing="0" cellpadding="6">
      <TR valign="top">
        <TD class="rowBottomBorder" style="border-collapse:collapse; border-top: 1px #999999 solid;" >&nbsp; </TD>
        <TD class="rowBottomBorder" style="border-collapse:collapse; border-top: 1px #999999 solid;" >
    
    
          <!--Pediatric LAYER-->
          <div id="Pediatric" name="Pediatric" >
            <table width="600" border="0" cellspacing="0" cellpadding="0" name="PediatricTable">
              <tr align="right">
                <td colspan="2">
                  <!--tabs table-->
                  <table border="0" cellpadding="0" cellspacing="0" name="PediatricTabs">
                    <tr class="tabs">
                      <td id="spacerTab">&nbsp;</td>
                      <td id="PediatricTabSelected" width="10%" >Pediatric Setting</td>
                      <td id="AdolescentTab" width="10%"><a href="javascript:;"
    				  onClick="turnOffCurrentPlayer('PediatricPlayer', 'Adolescent', 'Pediatric', 'AdolescentPlayer');">Adolescent Setting</a></td>
                      <td id="GynecologicTab" width="10%" 
    				  onClick="turnOffCurrentPlayer('PediatricPlayer', 'Gynecologic', 'Pediatric', 'GynecologicPlayer');">Adult Gynecologic Setting</td>
                      <td id="IntimatePartnerTab" width="30%" 
    				 onClick="turnOffCurrentPlayer('PediatricPlayer', 'IntimatePartner', 'Pediatric', 'IntimatePartnerPlayer');">Primary Care Setting<br>
                        Intimate Partner)</td>
                      <td id="SpecialNeedsTab" width="30%" 
    				  onClick="turnOffCurrentPlayer('PediatricPlayer', 'SpecialNeeds', 'Pediatric', 'SpecialNeedsPlayer');">Primary Care Setting<br>
                        (Patients with Special Needs)</td>
                    </tr>
                  </table>
                  <!--end tabs table-->
                </td>
              </tr>
              <tr >
                <td width="246" class="body1">
                  <DIV class="PlayerHolder">
                    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "PediatricPlayer" name= "PediatricPlayer" width = "300" >
                      <PARAM name = "URL" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/pediatric.asx">
                      <PARAM name = "FileName" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/pediatric.asx">
                      <PARAM name = "captioningID" value = "CapText1">
                      <PARAM name = "canSeek" value = "true">
                      <embed TYPE="application/x-mplayer2" 
    			ID="PediatricPlayer" 
    			NAME="PediatricPlayer"
    		  src="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/pediatric.asx" 
    		  FileName="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/pediatric.asx"
    		  width="300" height="290" 
    		  captioningID="CapText1" 
    		  canSeek="true"> </embed>
                    </OBJECT>
    				
    
                    <p> 
                  </DIV>
                  <DIV  id = "CapText1" name="CapText1"></DIV>
                  <div id="alternateLink"><a href="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/screenAbusewholevideo.asx">Click here to view entire video, or if video above does not work for you.</a> (running time 32:43)</div></td>
                <td width="306" class="body1" valign="top" >&nbsp;</td>
              </tr>
            </table>
          </div>
          <!--end Pediatric Layer-->
    	  
    	  
          <!--Adolescent LAYER-->
          <div id="Adolescent" name="Adolescent" >
            <table width="600" border="0" cellspacing="0" cellpadding="0" >
              <tr align="right">
                <td colspan="2">
                  <!--tabs table-->
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tr class="tabs">
                      <td id="spacerTab">&nbsp;</td>
                      <td id="PediatricTab" width="10%"
    				onClick="turnOffCurrentPlayer('AdolescentPlayer', 'Pediatric', 'Adolescent', 'PediatricPlayer');" >Pediatric</td>
                      <td id="AdolescentTabSelected" width="10%" >Adolescent Setting</td>
                      <td id="GynecologicTab" width="10%" 
    				  onClick="turnOffCurrentPlayer('AdolescentPlayer', 'Gynecologic', 'Adolescent', 'GynecologicPlayer');" >Adult Gynecologic Setting</td>
                      <td id="IntimatePartnerTab" width="30%" 
    				  onClick="turnOffCurrentPlayer('AdolescentPlayer', 'IntimatePartner', 'Adolescent', 'IntimatePartnerPlayer');">Primary Care Setting<br>
                        Intimate Partner)</td>
                      <td id="SpecialNeedsTab" width="30%"
    				  onClick="turnOffCurrentPlayer('AdolescentPlayer', 'SpecialNeeds', 'Adolescent', 'SpecialNeedsPlayer');">Primary Care Setting<br>
                        (Patients with Special Needs)</td>
                    </tr>
                  </table>
                  <!--end tabs table-->
                </td>
              </tr>
              <tr >
                <td width="246" class="body1">
                  <DIV class="PlayerHolder">
                    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "AdolescentPlayer" name= "AdolescentPlayer" width = "300" >
                      <PARAM name = "AutoStart" value = "0">
                      <PARAM name = "URL" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/adolescent.asx">
    				  <PARAM name = "FileName" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/adolescent.asx">
                      <PARAM name = "captioningID" value = "CapText2">
                      <embed TYPE="application/x-mplayer2"
    		  NAME="AdolescentPlayer"
    		  ID="AdolescentPlayer"
    		  src="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/adolescent.asx" 
    		  FileName="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/adolescent.asx"
    		  width="300" 
    		  height="290" 
    		  captioningID="CapText2" 
    		  canSeek="true"> </embed>
                    </OBJECT>
                    <p> 
                  </DIV>
                  <DIV  id = "CapText2" name="CapText2"></DIV>
                  <div id="alternateLink"><a href="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/screenAbusewholevideo.asx">Click here to view entire video, or if video above does not work for you.</a> (running time 32:43)</div></td>
                <td width="306" class="body1" valign="top" >&nbsp;</td>
              </tr>
            </table>
          </div>
          <!--end Pediatric Layer-->
    	  
    	  
    	  
          <!--Gynecologic LAYER-->
          <div id="Gynecologic" name="Gynecologic">
            <table width="600" border="0" cellspacing="0" cellpadding="0" >
              <tr align="right">
                <td colspan="2">
                  <!--tabs table-->
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tr class="tabs">
                      <td id="spacerTab" width="10%">&nbsp;</td>
                      <td id="PediatricTab" width="10%"  
    				onClick="turnOffCurrentPlayer('GynecologicPlayer', 'Pediatric', 'Gynecologic', 'PediatricPlayer');" >Pediatric</td>
                      <td id="AdolescentTab" width="10%"  
    				   onClick="turnOffCurrentPlayer('GynecologicPlayer', 'Adolescent', 'Gynecologic', 'AdolescentPlayer');">Adolescent Setting</td>
                      <td id="GynecologicTabSelected" width="10%">Adult Gynecologic Setting</td>
                      <td id="IntimatePartnerTab" width="30%"
    				    onClick="turnOffCurrentPlayer('GynecologicPlayer', 'IntimatePartner', 'Gynecologic', 'IntimatePartnerPlayer');">Primary Care Setting<br>
                        (Intimate Partner)</td>
                      <td id="SpecialNeedsTab" width="50%" 
    				    onClick="turnOffCurrentPlayer('GynecologicPlayer', 'SpecialNeeds', 'Gynecologic', 'SpecialNeedsPlayer');">Primary Care Setting<br>
                        (Patients with Special Needs)</td>
                    </tr>
                  </table>
                  <!--end tabs table-->
                </td>
              </tr>
              <tr >
                <td width="246" class="body1">
                  <DIV class="PlayerHolder">
                    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "GynecologicPlayer" name= "GynecologicPlayer" width = 300>
                      <PARAM name = "AutoStart" value = "0">
                      <PARAM name = "URL" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/gynecologic.asx">
    				  <PARAM name = "FileName" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/gynecologic.asx">
                      <PARAM name = "captioningID" value = "CapText3">
                      <embed TYPE="application/x-mplayer2"
    		  src="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/gynecologic.asx" 
    		  FileName="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/gynecologic.asx"
    		  name="GynecologicPlayer" 
    		  id="GynecologicPlayer"
    		  width="300" 
    		  height="290" 
    		  captioningID="CapText3" 
    		  canSeek="true"> </embed>
                    </OBJECT>
                    <p> 
                  </DIV>
                  <!--this DIV, CapText3 creates a partition for a closed caption text display-->
                  <DIV  id = "CapText3" name="CapText3"></DIV>
                  <div id="alternateLink"><a href="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/screenAbusewholevideo.asx">Click here to view entire video, or if video above does not work for you.</a> (running time 32:43)</div></td>
                <td width="306" class="body1">&nbsp;</td>
              </tr>
            </table>
          </div>
          <!--END Gynecologic LAYER-->
    	  
    	  
          <!--Begin Intimate Partner layer-->
          <div id="IntimatePartner" name="IntimatePartner">
            <table width="600" border="0" cellspacing="0" cellpadding="0" >
              <tr align="right">
                <td colspan="2">
                  <!--tabs layer-->
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tr class="tabs">
                      <td id="spacerTab" width="10%">&nbsp;</td>
                      <td id="PediatricTab" width="10%" 
    				  onClick="turnOffCurrentPlayer('IntimatePartnerPlayer', 'Pediatric', 'IntimatePartner', 'PediatricPlayer');" >Pediatric Setting</td>
                      <td id="AdolescentTab" width="10%" 
    				   onClick="turnOffCurrentPlayer('IntimatePartnerPlayer', 'Adolescent', 'IntimatePartner', 'AdolescentPlayer');">Adolescent Setting</td>
                      <td id="GynecologicTab" width="10%" 
    				   onClick="turnOffCurrentPlayer('IntimatePartnerPlayer', 'Gynecologic', 'IntimatePartner', 'GynecologicPlayer');" >Adult Gynecologic Setting</td>
                      <td id="IntimatePartnerTabSelected" width="30%">Primary Care Setting<br>
                        Intimate Partner)</td>
                      <td id="SpecialNeedsTab" width="50%" 
    				   onClick="turnOffCurrentPlayer('IntimatePartnerPlayer', 'SpecialNeeds', 'IntimatePartner', 'SpecialNeedsPlayer');" >Primary Care Setting<br>
                        (Patients with Special Needs)</td>
                    </tr>
                  </table>
                  <!--end tabs layer-->
                </td>
              </tr>
              <tr >
                <td width="246" class="body1">
                  <DIV class="PlayerHolder" >
                    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "IntimatePartnerPlayer" name= "IntimatePartnerPlayer" width = 300>
                      <PARAM name = "AutoStart" value = "0">
                      <PARAM name = "URL" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/IntimatePartner.asx">
                      <PARAM name = "FileName" ="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/IntimatePartner.asx">
                      <PARAM name = "captioningID" value = "CapText4">
                      <embed TYPE="application/x-mplayer2"
    		  src="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/IntimatePartner.asx" 
    		  FileName="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/IntimatePartner.asx"
    		  name="IntimatePartnerPlayer"
    		  id="IntimatePartnerPlayer"
    		  width="300" 
    		  height="290" 
    		  captioningID="CapText4" 
    		  canSeek="true"> </embed>
                    </OBJECT>
                    <p> 
                  </DIV>
                  <!--DIV creates a partition for a closed caption text display-->
                  <DIV  id = "CapText4" name="CapText4"></DIV>
                  <div id="alternateLink"><a href="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/screenAbusewholevideo.asx">Click here to view entire video, or if video above does not work for you.</a> (running time 32:43)</div></td>
                <td width="306" class="body1">&nbsp;</td>
              </tr>
            </table>
          </div>
          <!--end IntimatePartner layer-->
    	  
    	  
          <!--begin SpecialNeeds layer-->
          <div id="SpecialNeeds" name="SpecialNeeds">
            <table width="600" border="0" cellspacing="0" cellpadding="0" >
              <tr align="right">
                <td colspan="2">
                  <!--tabs table-->
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tr class="tabs">
                      <td id="spacerTab"  width="10%" >&nbsp;</td>
                      <td id="PediatricTab"  width="10%"
    				onClick="turnOffCurrentPlayer('SpecialNeedsPlayer', 'Pediatric', 'SpecialNeeds', 'PediatricPlayer');">Pediatric Setting</td>
                      <td id="AdolescentTab" width="10%"
    				onClick="turnOffCurrentPlayer('SpecialNeedsPlayer', 'Adolescent', 'SpecialNeeds', 'AdolescentPlayer');">Adolescent Setting</td>
                      <td id="GynecologicTab"  width="10%" 
    				onClick="turnOffCurrentPlayer('SpecialNeedsPlayer', 'Gynecologic', 'SpecialNeeds', 'GynecologicPlayer');">Adult Gynecologic Setting</td>
                      <td id="IntimatePartnerTab"  width="30%" 
    				onClick="turnOffCurrentPlayer('SpecialNeedsPlayer', 'IntimatePartner', 'SpecialNeeds', 'IntimatePartnerPlayer');">Primary Care Setting<br>
                        (Intimate Partner)</td>
                      <td id="SpecialNeedsTabSelected"  width="50%">Primary Care Setting<br>
                        (Patients with Special Needs)</td>
                    </tr>
                  </table>
                  <!--end tabs table-->
                </td>
              </tr>
              <tr >
                <td width="246" class="body1">
                  <DIV class="PlayerHolder" >
                    <OBJECT classid = clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 height = 300 id = "SpecialNeedsPlayer" name= "SpecialNeedsPlayer" width = 300>
                      <PARAM name = "AutoStart" value = "0">
                      <PARAM name = "URL" value = "http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/SpecialNeeds.asx">
                      <PARAM name = "FileName" ="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/SpecialNeeds.asx">
                      <PARAM name = "captioningID" value = "CapText5">
                      <embed TYPE="application/x-mplayer2"
    		  src="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/SpecialNeeds.asx" 
    		  name="SpecialNeedsPlayer"
    		  filename="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/SpecialNeeds.asx"
    		  id="SpecialNeedsPlayer"
    		  width="300" 
    		  height="290" 
    		  captioningID="CapText5" 
    		  canSeek="true"> </embed>
                    </OBJECT>
                    <p> 
                  </DIV>
                  <!-- following DIV creates a partition for a closed caption text display-->
                  <DIV  id = "CapText5" name="CapText5"></DIV>
                  <div id="alternateLink"><a href="http://thedesignspace.net/MT2archives/images/tabbedVideo/video1/screenAbusewholevideo.asx">Click here to view entire video, or if video above does not work for you.</a> (running time 32:43)</div></td>
                <td width="306" class="body1"> </td>
              </tr>
            </table>
          </div>
          <div >
            <P class="head1">&nbsp;</P>
            <P class="head1">&nbsp;</P>
            <P class="head1">&nbsp;</P>
            <P class="head1">&nbsp;</P>
          </div>
          <DIV class="Level5">
            <p></p>
          </DIV>
          <DIV class="Level5"></DIV>
          <DIV class="Level5">
            <DIV align="right">
              </DIV>
        </DIV></TD>
      </TR>
    </TABLE>
    
    </body>
    </html>

  • #10
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by jbot
    nonsense. IE6 put paid to that when it was launched 3 years ago, since at that time it was ceasing support of Netscape's plugin architecture.
    Then why does
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    	<head>
    		<title>Embedded Movie</title>
    	</head>
    	<body>
    		<object type="video/quicktime" data="/media/test.mov" width="480px" height="279px"></object>
    	</body>
    </html>
    work in Firefox and not in Internet Explorer?

  • #11
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hemebound: because that's not the correct syntax for IE.

    IE uses ActiveX to run multimedia, and requires the use of the object tag to install them. this must be accompanied with the classid, codebase and codetype attributes. Quicktime example:

    Code:
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="144"
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <PARAM name="SRC" VALUE="sample.mov">
    <PARAM name="AUTOPLAY" VALUE="true">
    <PARAM name="CONTROLLER" VALUE="false">
    <EMBED SRC="sample.mov" WIDTH="160" HEIGHT="144" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
    </EMBED>
    </OBJECT>


    the method you mention still requires the use of Netscape style plugins which IE no longer supports. Moz may now be using the object tag instead of the embed one, but it still uses the same architecture to handle plugins.

    anyway, methinks you're trolling, eh!!
    *keep it simple (TM)

  • #12
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by jbot
    anyway, methinks you're trolling, eh!!
    No, I'm trying to show you how to use the object element correctly. It's not Netscapes plugin method, it's how you use the object element. The code you are using there is incorrect.

    Objects
    classid = uri [CT]
    This attribute may be used to specify the location of an object's implementation via a URI. It may be used together with, or as an alternative to the data attribute, depending on the type of object involved.
    codebase = uri [CT]
    This attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document.
    data = uri [CT]
    This attribute may be used to specify the location of the object's data, for instance image data for objects defining images, or more generally, a serialized form of an object which can be used to recreate it. If given as a relative URI, it should be interpreted relative to the codebase attribute.
    As you can see, your code provides incorrect values for attributes, and also has a depreciated child-element, embed.

    Never trust Internet Explorer to do things properly.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •