Exemple #1
0
 public void AddWeakEvent_Result_GetMediaInfo(Delegate_OnResult_GetMediaInfo d)
 {
     WeakList_GetMediaInfo.Add(new WeakReference(d));
 }
 public void GetMediaInfo(System.UInt32 InstanceID, object _Tag, Delegate_OnResult_GetMediaInfo _Callback)
 {
     UPnPArgument[] args = new UPnPArgument[10];
        args[0] = new UPnPArgument("InstanceID", InstanceID);
        args[1] = new UPnPArgument("NrTracks", "");
        args[2] = new UPnPArgument("MediaDuration", "");
        args[3] = new UPnPArgument("CurrentURI", "");
        args[4] = new UPnPArgument("CurrentURIMetaData", "");
        args[5] = new UPnPArgument("NextURI", "");
        args[6] = new UPnPArgument("NextURIMetaData", "");
        args[7] = new UPnPArgument("PlayMedium", "");
        args[8] = new UPnPArgument("RecordMedium", "");
        args[9] = new UPnPArgument("WriteStatus", "");
        _S.InvokeAsync("GetMediaInfo", args, new object[2]{_Tag,_Callback}, new UPnPService.UPnPServiceInvokeHandler(Sink_GetMediaInfo), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_GetMediaInfo));
 }