public class MediaDiscoverer extends Object
This is a minimal implementation providing a list of media on-demand - it does not implement any events and will not automatically update if and when new media is discovered.
Constructor and Description |
---|
MediaDiscoverer(LibVlc libvlc,
libvlc_instance_t instance,
String name)
Create a media discoverer.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalisedName()
Get the localised name of this discoverer.
|
MediaList |
getMediaList()
Get the media list containing the discovered services/media.
|
String |
getName()
Get the name of this discoverer.
|
void |
release()
Clean up media list resources.
|
public MediaDiscoverer(LibVlc libvlc, libvlc_instance_t instance, String name)
libvlc
- native interfaceinstance
- native library instancename
- discoverer namepublic final String getName()
public final String getLocalisedName()
public final MediaList getMediaList()
This media list will likely contain nested sub-items, so the list should be processed recursively to discover media items and their MRLs.
public final void release()
Copyright © 2009-2013 Caprica Software Limited. All Rights Reserved.