Exemplo n.º 1
0
 private void nudge() {
   for (Iterator<RecorderEvent> iter = pendingEvents.iterator(); iter.hasNext(); ) {
     RecorderEvent ev = iter.next();
     long instant = getSynchronizer().getLocalTime(ev.getSsrc(), ev.getRtpTimestamp());
     if (instant != -1) {
       iter.remove();
       ev.setInstant(instant);
       handler.handleEvent(ev);
     }
   }
 }
 /**
  * Registers or unregister as a popup message listener to detect when a user click on
  * notification saying that the device configuration has changed.
  *
  * @param enable True to register to the popup message notifcation handler. False to unregister.
  */
 public void managePopupMessageListenerRegistration(boolean enable) {
   Iterator<NotificationHandler> notificationHandlers =
       notificationService
           .getActionHandlers(
               net.java.sip.communicator.service.notification.NotificationAction
                   .ACTION_POPUP_MESSAGE)
           .iterator();
   NotificationHandler notificationHandler;
   while (notificationHandlers.hasNext()) {
     notificationHandler = notificationHandlers.next();
     if (notificationHandler instanceof PopupMessageNotificationHandler) {
       // Register.
       if (enable) {
         //                        ((PopupMessageNotificationHandler) notificationHandler)
         //                            .addPopupMessageListener(this);
       }
       // Unregister.
       else {
         //                        ((PopupMessageNotificationHandler) notificationHandler)
         //                            .removePopupMessageListener(this);
       }
     }
   }
 }