Title: [Plugin: Audio Player] API not working ?
Last modified: August 20, 2016

---

# [Plugin: Audio Player] API not working ?

 *  [brunetton](https://wordpress.org/support/users/brunetton/)
 * (@brunetton)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/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
 * [http://wordpress.org/extend/plugins/audio-player/](http://wordpress.org/extend/plugins/audio-player/)

The topic ‘[Plugin: Audio Player] API not working ?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/audio-player.svg)
 * [Audio Player](https://wordpress.org/plugins/audio-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/audio-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/audio-player/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [brunetton](https://wordpress.org/support/users/brunetton/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-audio-player-api-not-working/)
 * Status: not resolved