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.
显示文件
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_oe property
$album protected_oe property
$artist protected_oe property
$deck protected_oe property
$end_time protected_oe property
$fields protected_oe property
$filename protected_oe property
$fullpath protected_oe property
$length protected_oe property
$played protected_oe property
$playtime protected_oe property
$row protected_oe property
$start_time protected_oe property
$title protected_oe property
$updated_at protected_oe property