public class MediaDetails extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
creationDate
The creation date of the media.
|
long |
freeSpace
The amount of storage remaining, in bytes.
|
CdjStatus.TrackType |
mediaType
The type of tracks stored in this media.
|
static int |
MINIMUM_PACKET_SIZE
The smallest packet size from which we can be constructed.
|
String |
name
The name assigned to the media within rekordbox.
|
int |
playlistCount
The number of rekordbox playlists in the media database.
|
SlotReference |
slotReference
The player and slot in which this media resides.
|
long |
totalSize
The size of the storage space, in bytes.
|
int |
trackCount
The number of rekordbox tracks in the media database.
|
| Constructor and Description |
|---|
MediaDetails(byte[] packet,
int packetLength)
Constructor sets all the immutable interpreted fields based on the packet content.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getRawBytes()
Get the raw bytes of the media details as returned by the player.
|
boolean |
hasChanged(MediaDetails originalMedia)
Check whether the media seems to have changed since a saved version of it was used.
|
String |
hashKey()
Build a string containing the things that we do not expect to change about the media, to help us recognize
it when it gets mounted in the future.
|
String |
toString() |
public final SlotReference slotReference
public final CdjStatus.TrackType mediaType
public final String name
public final String creationDate
public final int trackCount
mediaType is not rekordbox.public final int playlistCount
mediaType is not rekordbox.public final long totalSize
public final long freeSpace
public static final int MINIMUM_PACKET_SIZE
public MediaDetails(byte[] packet,
int packetLength)
packet - the media response packet that was received or cachedpacketLength - the number of bytes within the packet which were actually receivedpublic ByteBuffer getRawBytes()
public String hashKey()
public boolean hasChanged(MediaDetails originalMedia)
originalMedia - the media details when information about it was savedIllegalArgumentException - if the hashKey() values of the media detail objects differCopyright © 2016–2019 Deep Symmetry, LLC. All rights reserved.