コード例 #1
0
ファイル: StreamSourceInfo.cs プロジェクト: ewin66/media
 /// <summary>
 /// Creates a shallow copy of another StreamSourceInfo
 /// </summary>
 /// <param name="rhs">item to copy</param>
 public StreamSourceInfo(StreamSourceInfo rhs)
 {
     _sourceName  = rhs.SourceName;
     _sourceType  = rhs.SourceType;
     _liveSource  = rhs.LiveSource;
     _description = rhs.Description;
     _maxRecordingChunkMinutes  = rhs.MaxRecordingChunkMinutes;
     _syncToleranceMilliseconds = rhs.SyncToleranceMilliseconds;
     _maxQueueDuration          = rhs.MaxQueueDuration;
     _maxClients  = rhs.MaxClients;
     _sinkAddress = rhs.SinkAddress;
     if (rhs.LogicalGroupSourceNames != null)
     {
         _logicalGroupSourceNames = new List <string>();
         foreach (string logicalGroupSourceName in rhs.LogicalGroupSourceNames)
         {
             _logicalGroupSourceNames.Add(logicalGroupSourceName);
         }
     }
     if (rhs.ProfileGroupNames != null)
     {
         _profileGroupNames = new List <string>();
         foreach (string profileGroupName in rhs.ProfileGroupNames)
         {
             _profileGroupNames.Add(profileGroupName);
         }
     }
     _deviceAddress = rhs.DeviceAddress;
     _cameraControl = rhs.CameraControl;
     _microwave     = rhs.MicrowaveControl;
     _tvTuner       = rhs.TVTuner;
 }
コード例 #2
0
ファイル: StreamSources.cs プロジェクト: ewin66/media
 /// <summary>
 /// Adds a new <see cref="T:StreamSourceInfo"/> item to the collection.
 /// </summary>
 /// <param name="item">item to add</param>
 public void Add(StreamSourceInfo item)
 {
     if (_items == null)
     {
         _items = new List <StreamSourceInfo>();
     }
     _items.Add(item);
 }