Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
protocole_json [2011/04/26 16:32]
admin [get_home]
protocole_json [2011/04/26 16:34]
admin [get_playlist]
Line 206: Line 206:
     "audio_players": [     "audio_players": [
         {         {
-            "coverart": "1", +            "player_id": "0", 
-            "current_track": "83", +            "playlist_current_track": "0", 
-            "status": "playing", +            "volume": "33", 
-            "duration": "262", +            "playlist_size": "5", 
-            "artist": "Hint", +            "time_elapsed": "1420.68", 
-            "album": "Shapes 09:01", +            "cover_url": "/music.php?player_id=0", 
-            "title": "School Bell", +            "current_track":
-            "volume": "31", +                "title": "Sun", 
-            "time": "86.09"+                "duration": "0"
 +                "artist": "Sun", 
 +                "album": "", 
 +                "coverart": "1" 
 +            }
 +            "status": "playing"
         }         }
     ]     ]
Line 288: Line 293:
       "player_id": "0"       "player_id": "0"
   }   }
 +
 +On peut rajouter le paramètre //from// et //to// qui permettent de spécifier une partie de la playlist a charger. Pratique en cas d'utilisation asynchrone et lorsqu'une playlist est grande.
  
 Réponse: Réponse: