/// <summary> /// Constructs and initializes a new instance of <see /// cref="Paginator" /> for a given <see cref="Codec" /> /// object. /// </summary> /// <param name="codec"> /// A <see cref="Codec"/> object to use when processing /// packets. /// </param> public Paginator(Codec codec) { this.codec = codec; }
/// <summary> /// Gets the duration of the stream represented by the /// current instance. /// </summary> /// <param name="lastAbsoluteGranularPosition"> /// A <see cref="long" /> value containing the absolute /// granular position of the last page in the bitstream. /// </param> /// <returns> /// A <see cref="TimeSpan" /> object containing the duration /// of the stream represented by the current instance. /// </returns> public TimeSpan GetDuration(long lastAbsoluteGranularPosition) { return(Codec.GetDuration(first_absolute_granular_position, lastAbsoluteGranularPosition)); }