My favorites | Sign in
Project Logo
             
Search
for
Updated Aug 28, 2007 by MatthewBrown
Labels: sessions, handshake.php, np.php, xspf, protocol, version, Featured
HowSessionsVersionsAffectingNowPlayingPHP  
How your handshake affects sessions.

Introduction

Originally a Last.FM journal entry

Details

  1. The latest version of the AudioScrobbler protocol (1.2, handshaked by client versions 1.3.1.x) no longer support the use of np.php to obtain metadata.
  2. Whatever client version "you" feed handshake.php will determine the version of the protocol you will be using. In order to use np.php to obtain metadata the version Post variable (version=X) must be <= 1.3.0.0 (tested with 1.0.1.1).
  3. Your session will stay alive for about seven days.
  4. You will keep the same session ID regardless of how many handshakes are performed.
  5. You cannot change the protocol version while you have a session ID.
  6. A session ID is used every time you use the Last.FM Client Player; and will "automatically" be "renewed" upon expiration (making it generally impossible to reset the version to a version that allows you to use np.php to obtain metadata).

Solution

The solution is to conform to AudioScrobbler protocol 1.2 specifications, which uses XSPFs to create a playlist of six songs. The XSPF file contains the metadata for the songs.


Sign in to add a comment
Hosted by Google Code