private void init(ISilverlightLoader loader, List <Uri> packageSourceList, float maxTransferRateKB)
 {
     // save transfer rate if any
     m_maxTransferRateKB = maxTransferRateKB;
     // save loader callback interface
     m_loader = loader;
     // call init callback with package list
     m_loader.initCallback(packageSourceList);
     // iterate through list and start downloading the files
     foreach (Uri packageSourceFile in packageSourceList)
     {
         if (!isStreamingUri(packageSourceFile))
         {
             if (maxTransferRateKB > 0)
             {
                 simulateFileDownload(packageSourceFile);
             }
             else
             {
                 downloadFile(packageSourceFile);
             }
         }
         else
         {
             SilverlightStreamingUtil.GetMediaStreamUriCallback gmsCallback;
             // check if sim mode is on
             if (maxTransferRateKB > 0)
             {
                 gmsCallback = new SilverlightStreamingUtil.GetMediaStreamUriCallback(simulateFileDownload);
             }
             else
             {
                 gmsCallback = new SilverlightStreamingUtil.GetMediaStreamUriCallback(downloadFile);
             }
             // start the streaming media url process
             SilverlightStreamingUtil streamUtil = new SilverlightStreamingUtil(gmsCallback);
             streamUtil.getMediaStreamUri(packageSourceFile.ToString());
         }
     }
 }
 private void init(ISilverlightLoader loader, List<Uri> packageSourceList, float maxTransferRateKB)
 {
     // save transfer rate if any
     m_maxTransferRateKB = maxTransferRateKB;
     // save loader callback interface
     m_loader = loader;
     // call init callback with package list
     m_loader.initCallback(packageSourceList);
     // iterate through list and start downloading the files
     foreach (Uri packageSourceFile in packageSourceList)
     {
         if (!isStreamingUri(packageSourceFile))
         {
             if (maxTransferRateKB > 0)
                 simulateFileDownload(packageSourceFile);
             else
                 downloadFile(packageSourceFile);
         }
         else
         {
             SilverlightStreamingUtil.GetMediaStreamUriCallback gmsCallback;
             // check if sim mode is on
             if (maxTransferRateKB > 0)
                 gmsCallback = new SilverlightStreamingUtil.GetMediaStreamUriCallback(simulateFileDownload);
             else
                 gmsCallback = new SilverlightStreamingUtil.GetMediaStreamUriCallback(downloadFile);
             // start the streaming media url process
             SilverlightStreamingUtil streamUtil = new SilverlightStreamingUtil(gmsCallback);
             streamUtil.getMediaStreamUri(packageSourceFile.ToString());
         }
     }
 }