Requirements: Your On Demand Audio must be a mp3 file that is hosted on the web.
NOTE: Activating the On Demand Audio requires some javascript. If you're using Wordpress, we highly recommend installing the Code Embed Plugin to handle the embedding of javascript into your Wordpress post and pages. It's a great workaround for Wordpress' javascript embed restrictions.
1. On your site, create text/button/graphic that will be used to trigger your audio to play in the bar. (example text: ‘Click Here to Listen!’)
2. Set the href of your text/button/graphic equal to our API method below:
javascript:tgmp.playAudio(‘url’, ‘track name’, ‘artist name’)
- url: The url of your mp3 file
- track name: The name of your track
- artist name: The name of the artist
Example:
Comments
0 comments
Please sign in to leave a comment.