PHP Class SSLTrack, sslscrobbler
SSL puts a lot of useful information into the history file, including
the full path to the MP3, bpm, key, etc., as well as history-oriented data
such as start and end time, which deck the track was played on, played or
skipped, manually added, etc. There is also an incrementing integer primary
key (which I've called 'row').
History file Tracks also have a concept of their own 'status', in the sense of
'NEW', 'PLAYING', 'PLAYED' or 'SKIPPED'. (@see SSLRealtimeModel for more detail).
These states are derived from a combination of the 'played' field, which is
either 0 or 1 corresponding to whether or not the row is 'green' in the SSL
interface, and whether or not an 'endtime' is present.
Show file
Open project: ben-xo/sslscrobbler
Class Usage Examples
Protected Properties
Public Methods
Protected Methods
Method Details
__toString()
public method
file_exists()
protected method
getArtist()
public method
getEndTime()
public method
getFilename()
public method
getFullEndTime()
public method
getFullStartTime()
public method
getFullTitle()
public method
getFullpath()
public method
getLength()
public method
Pass SSLTrack::TRY_HARD if you would like the file
length to be guessed from the file itself, if possible,
and don't mind that this is possibly an expensive operation.
getLengthInSeconds()
public method
Pass SSLTrack::TRY_HARD if you would like the file
length to be guessed from the file itself, if possible,
and don't mind that this is possibly an expensive operation.
getPlayTime()
public method
getPlayed()
public method
getStartTime()
public method
getStatus()
public method
getUnpacker()
public method
getUpdatedAt()
public method
guessLengthFromFile()
protected method
Not sure why; perhaps files that have never been analysed.
So, let's attempt to guess it by analysing the full file.
populateFrom()
public method
renderTime()
protected method
setLengthIfUnknown()
protected method
This will attempt to set the length via guess work, if it's not already set.
Property Details
$added protected property
$album protected property
$artist protected property
$end_time protected property
$fields protected property
$filename protected property
$fullpath protected property
$length protected property
$played protected property
$playtime protected property
$start_time protected property
$title protected property
$updated_at protected property