Package org.deepsymmetry.beatlink
Interface MediaDetailsListener
-
public interface MediaDetailsListener
The listener interface for receiving media detail responses when theVirtualCdj
has been told to ask for information about what is in a player’s media slot. TheMetadataFinder
uses this to keep its information current; most people will probably only need to rely on that, through theMetadataFinder.getMediaDetailsFor(SlotReference)
andMetadataFinder.getMountedMediaDetails()
methods. But if you want to obtain that information without starting the MetadataFinder, you can implement this interface, register it usingVirtualCdj.addMediaDetailsListener(MediaDetailsListener)
, and then callVirtualCdj.sendMediaQuery(SlotReference)
yourself.- Author:
- James Elliott
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
detailsAvailable(MediaDetails details)
Invoked when a media details response message is received by theVirtualCdj
from a player.
-
-
-
Method Detail
-
detailsAvailable
void detailsAvailable(MediaDetails details)
Invoked when a media details response message is received by the
VirtualCdj
from a player.To reduce latency, detail announcements are delivered to listeners directly on the thread that is receiving them them from the network, so if you want to interact with user interface objects in this method, you need to use
javax.swing.SwingUtilities.invokeLater(Runnable)
to do so on the Event Dispatch Thread. Even if you are not interacting with user interface objects, any code in this method must finish quickly, or it will add latency for other listeners, and detail announcements will back up. If you want to perform lengthy processing of any sort, do so on another thread.- Parameters:
details
- the information describing the media mounted in a player slot
-
-