Class MediaDiscoverer
- java.lang.Object
-
- uk.co.caprica.vlcj.player.discoverer.MediaDiscoverer
-
public class MediaDiscoverer extends Object
Encapsulation of a native media discoverer component.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 Summary
Constructors Constructor Description MediaDiscoverer(LibVlc libvlc, libvlc_instance_t instance, String name)
Create a media discoverer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
MediaDiscoverer
public MediaDiscoverer(LibVlc libvlc, libvlc_instance_t instance, String name)
Create a media discoverer.- Parameters:
libvlc
- native interfaceinstance
- native library instancename
- discoverer name
-
-
Method Detail
-
getName
public final String getName()
Get the name of this discoverer.- Returns:
- name
-
getLocalisedName
public final String getLocalisedName()
Get the localised name of this discoverer.- Returns:
- name
-
getMediaList
public final MediaList getMediaList()
Get the media list containing the discovered services/media.This media list will likely contain nested sub-items, so the list should be processed recursively to discover media items and their MRLs.
- Returns:
- media list
-
release
public final void release()
Clean up media list resources.
-
-