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 2 of 2
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    CDA format work in Windows Media Player??

    OK, I have read the sticky and don't see my answer.

    Can 'cda' files be included in a web page for playing in firefox as well as IE?

    I have been given a selection of cda files for placing in a web page. The user is to be able to click on the track name and it should play. No video element to this project. I have tried the straightforward href but it doesn't want to play.

    My code below brings up the dd list and the start button/progress bar but after saying it is 'Ready' and then, 'Connecting to media', it goes back to its default setting/appearance and doesn't play the track.

    I would appreciate any tips you could give me.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title> Musical, Harp playing for your special occasion.</title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="/CSS/globalstyle.css" type="text/css"  media="screen" />
    <!-- localDDmenu CSS -->
    <link rel="stylesheet" href="/CSS/local_dropdown_menu.css" type="text/css" />
    <!-- nearbyDDmenu CSS -->
    <link rel="stylesheet" href="/CSS/nearby_dropdown_menu.css" type="text/css" />
    <!-- Default styles -->
    <link rel="stylesheet" type="text/css" href="http://www.my domain.net/CSS/default.css" media="screen" />  <!-- mobiles/PDA's stylesheet
    <link rel="stylesheet" href="ssr.css" type="text/css" media="handheld" /> -->
    <!-- print CSS -->
    
    <link rel="stylesheet" href="/CSS/print.css" type="text/css" media="print" />
    
    <script type="text/javascript"><!--
    function song(){
    document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
    }
    //-->
    </script>
    
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    sfHover = function() {
    	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    	for (var i=0; i<sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    
    //--><!]]></script>
    
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    
    sfHover = function() {
    	var sfEls = document.getElementById("nearby_nav").getElementsByTagName("LI");
    	for (var i=0; i<sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    
    //--><!]]></script>
    
    
    
    </head>
    
    <body>
    <!-- START OF HEADER  -->
    
    
    	<!-- END OF HEADER -->
    	
    
    
    	
    
    
      <div id="logoDiv">
        <img id="logo" src="/images/logo_new.gif" alt="" title="" />
    
      </div>
    
       <ul id="nav">
    <li>
    <a href="/cgi-bin/mainpage?baseBusiness=Cara-Harpist_Performers_Musical_Harpist_Corporation_County-Down_351045382618_BT20-5HA_Cara-Harpist_North-Down-Tourism_1_Performers_Christine-Evans&amp;subject=Home_Page&amp;file=Home_Page">Home Page</a></li>
    
    				<li><a href="/cgi-bin/musicSamples?baseBusiness=Cara-Harpist_Performers_Musical_Harpist_Corporation_County-Down_351045382618_BT20-5HA_Cara-Harpist_North-Down-Tourism_1_Performers_Christine-Evans">Samples</a></li>      <li><a href="/contactus.php">Contact Us</a></li>
    
    <li class="poweredBy">
        <a href="http://mydomain.net"><img
            src="http://mydomain.net/images/poweredBy.gif"
            alt="Powered by my Domain.net"/></a></li>
     
    
    </ul> <div id="thumbs">
    <ul id="thumbnail_imgs">
    
    
    </ul>
    
    </div>
    
    <select  id="cancion" onchange="song()" size="1">
       <option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
    
    <option value="Track01.cda">Track01.cda</option>
    <option value="Track02.cda">Track02.cda</option>
    <option value="Track03.cda">Track03.cda</option>
    <option value="Track04.cda">Track04.cda</option>
    <option value="Track05.cda">Track05.cda</option>
    
    <option value="Track06.cda">Track06.cda</option>
    <option value="Track07.cda">Track07.cda</option>
    <option value="Track08.cda">Track08.cda</option>
    <option value="Track09.cda">Track09.cda</option>
    <option value="Track10.cda">Track10.cda</option>
    <option value="Track11.cda">Track11.cda</option>
    <option value="Track12.cda">Track12.cda</option>
    <option value="Track13.cda">Track13.cda</option>
    <option value="Track14.cda">Track14.cda</option>
    
    <option value="Track19.cda">Track19.cda</option>
    <option value="Track20.cda">Track20.cda</option>
    <option value="Track21.cda">Track21.cda</option>
    <option value="Track22.cda">Track22.cda</option>
    <option value="Track23.cda">Track23.cda</option>
    <option value="Track24.cda">Track24.cda</option>
    <option value="Track25.cda">Track25.cda</option>
    </select><br> 
    <span id="music1"><embed type="application/x-mplayer2" id="music1"
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" 
    src="" 
    name="MediaPlayer1" 
    width="300"
    height="70"
    controltype="2" 
    showcontrols="1"
    showstatusbar="1"
    AutoStart="0">
    </embed></span>
    </body></html>
    Last edited by bazz; 11-21-2006 at 03:27 PM. Reason: Got the code tags wrong: been away too long

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    Answer found

    I found that CDA files are playable only from the cd/dvd drive. noiw that I have got mp3 files, it works.


  •  

    Posting Permissions

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