[Android] Method changeEventListener for MediaBrowser
Geoffrey Métais
git at videolan.org
Mon Apr 20 15:00:45 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr 20 13:18:47 2015 +0200| [15d0b1fd033fa14647ce903b22fad294250b7bff] | committer: Geoffrey Métais
Method changeEventListener for MediaBrowser
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=15d0b1fd033fa14647ce903b22fad294250b7bff
---
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
index 97ef383..25df1f4 100644
--- a/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+++ b/libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
@@ -95,6 +95,15 @@ public class MediaBrowser {
reset();
}
+ /**
+ * Reset this media browser and register a new EventListener
+ * @param eventListener new EventListener for this browser
+ */
+ public synchronized void changeEventListener(EventListener eventListener){
+ reset();
+ mEventListener = eventListener;
+ }
+
private void startMediaDiscoverer(String discovererName) {
MediaDiscoverer md = new MediaDiscoverer(mLibVlc, discovererName);
mMediaDiscoverers.add(md);
More information about the Android
mailing list