Class 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 Detail

      • MediaDiscoverer

        public MediaDiscoverer​(LibVlc libvlc,
                               libvlc_instance_t instance,
                               String name)
        Create a media discoverer.
        Parameters:
        libvlc - native interface
        instance - native library instance
        name - 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.