]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge commit '46eab2a0d50216ea0e6' into 0.3
authorAnna Sobiepanek <annaopensource@gmail.com>
Tue, 1 Feb 2011 22:36:55 +0000 (17:36 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Tue, 1 Feb 2011 22:36:55 +0000 (17:36 -0500)
1  2 
plugins/lastfm/popcorn.lastfm.html
plugins/lastfm/popcorn.lastfm.js

index 5d0011d35347fb43149de457c16a797ec5f5bb62,0cbb221f00983f5579d4c18221ad9f3c5f1bb143..2d7e5ee242b746aa170abd79470c255d18eb7b6e
@@@ -3,11 -3,18 +3,19 @@@
  <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
index fc8a0fccc3b6b124fc68ce220f8bc3604b175126,d7a095da8a260f25e97ee9381e900d9e4a81e9e9..880d7a0faa24b8889a4fe717ff6e8b621bde8f84
@@@ -6,7 -6,7 +6,7 @@@ var lastFMcallback
    /**
     * 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(){