<head>
<title>Popcorn LastFM Plug-in Demo</title>
+ <!--
+ ATTENTION
+
+ This demo uses an API key obtained for testing the LastFM Popcorn.js
+ plugin. Please do not use it for other purposes.
+ -->
+
<script src="../../popcorn.js"></script>
<script src="popcorn.lastfm.js"></script>
- <script>
+ <script>
document.addEventListener('DOMContentLoaded', function () {
var p = Popcorn('#video')
++ .volume(0)
.play()
.lastfm({
start: 5, // seconds
/**
* LastFM popcorn plug-in
* Appends information about a LastFM artist to an element on the page.
-- * Options parameter will need a start, end, target and artist.
++ * Options parameter will need a start, end, target, artist and apikey.
* Start is the time that you want this plug-in to execute
* End is the time that you want this plug-in to stop executing
* Artist is the name of who's LastFM information you wish to show
* Example:
var p = Popcorn('#video')
.lastfm({
- start: 5, // seconds, mandatory
- end: 15, // seconds, mandatory
- artist: 'yacht', // mandatory
- target: 'lastfmdiv' // mandatory
+ start: 5, // seconds, mandatory
+ end: 15, // seconds, mandatory
+ artist: 'yacht', // mandatory
+ target: 'lastfmdiv', // mandatory
+ apikey: '1234567890abcdef1234567890abcdef' // mandatory
} )
- *9268727cb4526b3d
+ *
*/
Popcorn.plugin( "lastfm" , (function(){