[libbluray-devel] BDJListeners: added MediaSelectEvent and ResourceStatusEvent

hpi1 git at videolan.org
Wed Jan 22 14:04:32 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jan 22 14:08:06 2014 +0200| [0e5002c218606cfedbce69c3790f0bc68a87ae6c] | committer: hpi1

BDJListeners: added MediaSelectEvent and ResourceStatusEvent

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=0e5002c218606cfedbce69c3790f0bc68a87ae6c
---

 src/libbluray/bdj/java/org/videolan/BDJListeners.java |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJListeners.java b/src/libbluray/bdj/java/org/videolan/BDJListeners.java
index 91e2209..796c65a 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJListeners.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJListeners.java
@@ -23,7 +23,8 @@ import java.util.LinkedList;
 
 import javax.media.ControllerEvent;
 import javax.media.ControllerListener;
-
+import javax.tv.media.MediaSelectEvent;
+import javax.tv.media.MediaSelectListener;
 import javax.tv.service.selection.ServiceContextEvent;
 import javax.tv.service.selection.ServiceContextListener;
 
@@ -40,6 +41,9 @@ import org.bluray.media.UOMaskTableListener;
 import org.bluray.media.UOMaskTableChangedEvent;
 import org.bluray.media.UOMaskedEvent;
 
+import org.davic.resources.ResourceStatusEvent;
+import org.davic.resources.ResourceStatusListener;
+
 import org.dvb.media.SubtitleListener;
 import java.util.EventObject;
 
@@ -130,10 +134,15 @@ public class BDJListeners {
                 ((PiPStatusListener)listener).piPStatusChange((PiPStatusEvent)event);
             } else if (event instanceof AngleChangeEvent) {
                 ((AngleChangeListener)listener).angleChange((AngleChangeEvent)event);
+            } else if (event instanceof MediaSelectEvent) {
+                ((MediaSelectListener)listener).selectionComplete((MediaSelectEvent)event);
 
             } else if (event instanceof ControllerEvent) {
                 ((ControllerListener)listener).controllerUpdate((ControllerEvent)event);
 
+            } else if (event instanceof ResourceStatusEvent) {
+                ((ResourceStatusListener)listener).statusChanged((ResourceStatusEvent)event);
+
             /* need to use wrapper if some other callback uses EventObject */
             } else if (event instanceof EventObject &&
                        listener instanceof SubtitleListener) {



More information about the libbluray-devel mailing list