Hi,
so far, your player doesn't seem to work at all.
I used a simple sample-setup:
ls foo/
first.mp3 soundmanager2_flash9.swf soundmanager2.js soundmanager2.swf testsoundmanager.html
- "first.mp3" is a valid mp3
- the swf-files are the original soundmanager-flashfiles, the same holds for "soundmanager.js"
- testsoundmanager.html looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta />
<title>fooo</title>
</head>
<body>
<!-- <script type="text/javascript">
soundManager.url = '.'; // directory where SM2 .SWFs live
soundManager.onload = function() {
// SM2 has loaded - now you can create and play sounds!
soundManager.createSound('helloWorld','./first.mp3');
soundManager.play('helloWorld');
}
</script>
-->
</body>
</html>
( i commented out the "script"-section in the body, because obviously your forum-system doesn't accept the html-code when i try to submit it!)
So, as you can see, i followed your guide here
http://www.schillmania.com/projects/s... exactly so far.
Now, when i call the site from my browser, the music starts immediately, but the html-output looks like this:
SMSound._onload(): "helloWorld" loaded.
SMSound._onid3(): "helloWorld" ID3 data received.
soundManager.onload() complete
soundManager.load(): ./first.mp3
SMSound.play(): Attempting to load "helloWorld"
SMSound() merged options: {
id: helloWorld,
url: ./first.mp3,
autoLoad: false,
stream: true,
autoPlay: false,
onbeforefinishtime: 5000,
onjustbeforefinishtime: 200,
multiShot: true,
pan: 0,
volume: 100
}
soundManager.createSound(): helloWorld (./first.mp3)
soundManager.initComplete(): calling soundManager.onload()
-- SoundManager 2 loaded (OK) --
(Flash): Enabling polling
Flash security sandbox type: localTrusted
(Flash): _externalInterfaceTest(): JS <-> Flash OK
Attempting to call JS -> Flash..
-- soundManager.init() --
soundManager._externalInterfaceOK()
(Flash): Flash -> JS OK
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.80a.20081005 (AS2/Flash 8) --
I disabled the flash-plugin security manager for this (local) file location, so this shouldn't be the problem.
Any ideas on this issue? Can anyone reproduce this?
P.S.: System information: Ubuntu Hardy, Firefox 3.03, Flash-Plugin: Shockwave Flash 9.0 r124