2012-01-04 46 views

回答

5
public class MyUpnpService extends AndroidUpnpServiceImpl { 

@Override 
protected AndroidUpnpServiceConfiguration createConfiguration(WifiManager wifiManager) { 
    return new AndroidUpnpServiceConfiguration(wifiManager) { 

     @Override 
     public ServiceType[] getExclusiveServiceTypes() { 
      return new ServiceType[] { 
        new UDAServiceType("AVTransport") 
      }; 
     } 

    }; 
} 

}

搜索与“服务的AVTransport”功能的设备解决了搜索媒体渲染器远程回放的问题。对于远程回放,我发现从this

足够documnetation