Ejemplo n.º 1
0
 protected void SetAVTransportURISink(System.UInt32 InstanceID, System.String CurrentURI, System.String CurrentURIMetaData)
 {
     if (ID_Table.ContainsKey(InstanceID) == false)
     {
         throw(new UPnPCustomException(802, InstanceID.ToString() + " is not a valid InstanceID"));
     }
     else
     {
         AVConnection c = (AVConnection)ID_Table[InstanceID];
         if ((CurrentURI == "") || (CurrentURI == null))
         {
             c.SetAVTransportURI(null, CurrentURIMetaData);
         }
         else
         {
             c.SetAVTransportURI(new Uri(CurrentURI), CurrentURIMetaData);
         }
     }
 }