Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-10-2010, 04:06 PM   PM User | #1
Stieben
New to the CF scene

 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Stieben is an unknown quantity at this point
Problem with MP3 player on website.

Hey guys,

I have a problem with my code. It is an MP3 player that I need on my website. Everything should be working fine, but there is 1 problem: The MP3 player starts automaticly while I DO have the autoStart function in my HTML.

Here's my HTML
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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BLALALABLABLALAB - Official Site</title>
<link href="Style.css" rel="stylesheet" type="text/css" />
</head>
<div id="Wrapper">
This website is under construction.
<table width="100%" border="0">
  <tr>
    <td align="center"><img src="860854969_5_4Xl2.jpg" width="500" height="497" alt="BLABLALABAL" /></td>
  </tr>
</table>
<script language="JavaScript" src="C:BLABLABLA\mp3Player.swf"></script>
<object type="application/x-shockwave-flash" data="C:BLABLABLA\mp3Player.swf" id="audioplayer1" height="100" width="300">
<param name="movie" value="C:BLABLABLA\mp3Player_black.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=C:BLABLABLA\Set To Fail.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<param name='autoStart' value="false">
</object>
</div>
<body>
</body>
</html>
And this is my MP3 player XML
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<music autoPlay="false">
	<song>
		<title><![CDATA[Set To Fail]]></title>
		<mp3File><![CDATA[BLABLA\Set To Fail.mp3]]></mp3File>
	</song>
</music>
Please help me I really need this.
Stieben is offline   Reply With Quote
Old 02-10-2010, 04:48 PM   PM User | #2
ahallicks
Senior Coder

 
ahallicks's Avatar
 
Join Date: May 2006
Location: Lancaster, UK
Posts: 1,134
Thanks: 1
Thanked 57 Times in 55 Posts
ahallicks is on a distinguished road
Do you know if the Flash has been set up to have controls on it? One thing I know about Flash is that if you don't put controls in them, you can't add them outside of Flash (and because of this the video (or audio) will automatically play even with the autostart parameter set to false).
__________________
"write it for FireFox then hack it for IE."
Quote:
Originally Posted by Mhtml View Post
Domains are like women - all the good ones are taken unless you want one from some foreign country.
Reputation is your friend

Development & SEO Tools
ahallicks is offline   Reply With Quote
Reply

Bookmarks

Tags
autostart, html, mp3, player, xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:07 AM.


Advertisement
Log in to turn off these ads.