[Plugin: Audio Player] API not working ?
-
Hi all,
I’m using standalone version and I’m trying to make a playlist for the player. When a user click on a
song title, I want the player to play that song.I hah a look on the API using audio-player-uncompressed.js, and I was
able to use the getVolume() function, but not the load() function :TypeError: Object #<HTMLObjectElement> has no method ‘load’
Here’s the code :
<html>
<head>
<script type=”text/javascript” src=”audio-player-
uncompressed.js”></script>
<script type=”text/javascript” src=”swfobject.js”></
script>
<script type=”text/javascript”>
AudioPlayer.setup(“player.swf”, {
width: 290
});
</script></head>
<body><p id=”audioplayer_1″>Alternative content</p>
<script type=”text/javascript”>
AudioPlayer.embed(“audioplayer_1”);
</script><a href=”#”
onclick=”AudioPlayer.getVolume(‘audioplayer_1’);”>Works
<a href=”#” onclick=”AudioPlayer.load(‘audioplayer_1’,
‘test.mp3’, ”, ”);”>Doesn’t works</body>
</html>I’m in a hurry to do that :s
If you have any idea, it’ll be welcom !Thanks
Bruno
- The topic ‘[Plugin: Audio Player] API not working ?’ is closed to new replies.