示例#1
0
 /** {@inheritDoc} */
 @Override
 public void process(final URI uri, final RTC[] rtc, final Dictionary<?, ?> optargs)
     throws MediaResourceException {
   if (uri == null) {
     return;
   }
   final GenericMediaService service = getMediaService();
   service.play(uri.toString(), 0, rtc, optargs);
 }
示例#2
0
 /** {@inheritDoc} */
 @Override
 public void handleStopProcessing() {
   try {
     final GenericMediaService service = getMediaService();
     service.triggerRTC(PlayerConstants.rtca_Stop);
   } catch (NotBoundException ex) {
     LOGGER.error("error stopping the media service", ex);
   }
 }