コード例 #1
0
 public void searchAll() {
   if (m_upnpService != null) {
     Log.e(TAG, "Search invoke");
     m_upnpService.getRegistry().removeAllRemoteDevices();
     m_upnpService.getControlPoint().search();
   } else {
     Log.e(TAG, "Upnp Service = null");
   }
 }
コード例 #2
0
 @Override
 public void setCurrentDMR(UDN uDN) {
   if (m_upnpService != null) m_upnpService.setCurrentDMR(uDN);
   else {
     Log.e(TAG, "Upnp Service = null");
   }
 }
コード例 #3
0
 @SuppressWarnings("rawtypes")
 @Override
 public Collection<Device> getDMRList() {
   if (m_upnpService != null)
     return m_upnpService
         .getRegistry()
         .getDevices(new DeviceType("schemas-upnp-org", "MediaRenderer"));
   else {
     Log.e(TAG, "Upnp Service = null");
   }
   return new ArrayList<Device>();
 }
コード例 #4
0
 @Override
 public DMRProcessor getDMRProcessor() {
   return m_upnpService != null ? m_upnpService.getDMRProcessor() : null;
 }
コード例 #5
0
 @Override
 public PlaylistProcessor getPlaylistProcessor() {
   return m_upnpService != null ? m_upnpService.getPlaylistProcessor() : null;
 }
コード例 #6
0
 @SuppressWarnings("rawtypes")
 @Override
 public Device getCurrentDMR() {
   return m_upnpService != null ? m_upnpService.getCurrentDMR() : null;
 }
コード例 #7
0
 public ControlPoint getControlPoint() {
   return m_upnpService != null ? m_upnpService.getControlPoint() : null;
 }
コード例 #8
0
 public Registry getRegistry() {
   return m_upnpService.getRegistry();
 }