Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

iTunesPreviewPlayer

iTunesPreviewPlayer makes it easy to embed an iTunes Preview player of any iTunes Store track.

Demo : http://michaelvillar.s3.amazonaws.com/iTunesPreviewPlayer/example.html

How to use

<link href="iTunesPreviewPlayer.css" rel="stylesheet" type="text/css" />
<script src="iTunesPreviewPlayer.js" type="text/javascript"></script>
<script>
// Create the instance with search term. Use artist and song name
var player = new iTunesPreviewPlayer("coldplay viva la vida");
// Add the DOMElement to any element of your page
document.body.appendChild(player.DOMElement());
</script>

Support

<audio> is used to play AAC files gathered from the iTunes API.

A Flash audio player should be used for browsers not supporting AAC files.

More

Please read iTunes Song Previews guidelines : http://www.apple.com/itunes/affiliates/resources/blog/song-previews.html

About

Javascript iTunes Song Preview player

Resources

Releases

No releases published

Packages

No packages published