-
- 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 classMediaDiscoverer.Eventpublic classMediaDiscoverer.Descriptionpublic interfaceMediaDiscoverer.EventListener
-
Constructor Summary
Constructors Constructor Description MediaDiscoverer(ILibVLC ILibVLC, String name)Create a MediaDiscover.
-
Method Summary
Modifier and Type Method Description booleanstart()Starts the discovery. voidstop()Stops the discovery. voidsetEventListener(MediaDiscoverer.EventListener listener)MediaListgetMediaList()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
-
-
-
-