public StreamingFilterData() { FirstQuality = null; PresentationTimeRange = new PresentationTimeRangeData(); Tracks = new List <FilterTrackSelectStatementData>(); ResourceSetName = StreamingFilterBaseCollection.FilterSet; }
internal PresentationTimeRange(PresentationTimeRangeData data) { if (data.Timescale != (Int64)TimescaleHns) { Timescale = (UInt64)data.Timescale; } if (data.StartTimestamp > 0) { StartTimestamp = (UInt64)data.StartTimestamp; } if (data.EndTimestamp != Int64.MaxValue) { EndTimestamp = (UInt64)data.EndTimestamp; } if (data.PresentationWindowDuration != Int64.MaxValue) { PresentationWindowDuration = TimeSpan.FromMilliseconds((data.PresentationWindowDuration / data.Timescale) * 1000); } if (data.LiveBackoffDuration != 0) { LiveBackoffDuration = TimeSpan.FromMilliseconds((data.LiveBackoffDuration / data.Timescale) * 1000); } Validate(); }
internal PresentationTimeRange(PresentationTimeRangeData data) { if (data.Timescale != (Int64) TimescaleHns) { Timescale = (UInt64)data.Timescale; } if (data.StartTimestamp > 0) { StartTimestamp = (UInt64) data.StartTimestamp; } if (data.EndTimestamp != Int64.MaxValue) { EndTimestamp = (UInt64)data.EndTimestamp; } if (data.PresentationWindowDuration != Int64.MaxValue) { PresentationWindowDuration = TimeSpan.FromMilliseconds((data.PresentationWindowDuration/data.Timescale)*1000); } if (data.LiveBackoffDuration != 0) { LiveBackoffDuration = TimeSpan.FromMilliseconds((data.LiveBackoffDuration / data.Timescale) * 1000); } Validate(); }