-
- All Implemented Interfaces:
-
org.videolan.libvlc.interfaces.IVLCObject
public class MediaDiscoverer extends VLCObject<MediaDiscoverer.Event>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MediaDiscoverer.Event
public class
MediaDiscoverer.Description
public interface
MediaDiscoverer.EventListener
-
Constructor Summary
Constructors Constructor Description MediaDiscoverer(ILibVLC ILibVLC, String name)
Create a MediaDiscover.
-
Method Summary
Modifier and Type Method Description boolean
start()
Starts the discovery. void
stop()
Stops the discovery. void
setEventListener(MediaDiscoverer.EventListener listener)
MediaList
getMediaList()
Get the MediaList associated with the MediaDiscoverer.This MediaDiscoverer should be alive (not released). static Array<MediaDiscoverer.Description>
list(ILibVLC ILibVLC, int category)
Get media discoverers by category -
-
Method Detail
-
start
boolean start()
Starts the discovery. This MediaDiscoverer should be alive (not released).
-
stop
void stop()
Stops the discovery. This MediaDiscoverer should be alive (not released).(You can also call to stop the discovery directly.
-
setEventListener
void setEventListener(MediaDiscoverer.EventListener listener)
-
getMediaList
MediaList getMediaList()
Get the MediaList associated with the MediaDiscoverer.This MediaDiscoverer should be alive (not released).
-
list
@Nullable() static Array<MediaDiscoverer.Description> list(ILibVLC ILibVLC, int category)
Get media discoverers by category
- Parameters:
category
- see Description.Category
-
-
-
-