Class MediaDiscoverer
- java.lang.Object
-
- uk.co.caprica.vlcj.media.discoverer.MediaDiscoverer
-
public final class MediaDiscoverer extends Object
Media discoverer component.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRunning()
Is media discovery running?MediaList
newMediaList()
Get the discovered media list.MediaListRef
newNediaListRef()
Get the discovered media list as aMediaListRef
.void
release()
Release the media discoverer and any associated native resources.boolean
start()
Start media discovery.void
stop()
Stop media discovery.
-
-
-
Method Detail
-
start
public boolean start()
Start media discovery.- Returns:
true
if successful;false
if error
-
stop
public void stop()
Stop media discovery.
-
isRunning
public boolean isRunning()
Is media discovery running?- Returns:
true
if discovery is running;false
if it is not
-
newMediaList
public MediaList newMediaList()
Get the discovered media list.The caller must release the returned
MediaList
when it has no further use for it.- Returns:
- media list
-
newNediaListRef
public MediaListRef newNediaListRef()
Get the discovered media list as aMediaListRef
.The caller must release the returned
MediaList
when it has no further use for it.- Returns:
- media list
-
release
public void release()
Release the media discoverer and any associated native resources.
-
-