This documentation is for the old version. Go to the latest Graphics Mill docs

QTReader.Duration Property

Gets the duration of the audio or video file.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)

Syntax

Visual Basic
Public ReadOnly Property Duration As Integer
C#
public int Duration { get; }

Property Value

An integer value which specifies a duration of the audio or video file. This value is measured in 1/100s of a second like any other time value in Graphics Mill.

Examples

This example shows how to get reader properties.
Visual Basic
Private Sub GetQTReaderProperties(ByVal aReader As QTReader)
    Console.WriteLine("Framework priority: " & _
        aReader.CodecPriority.ToString())
    Console.WriteLine("Duration of the opened file: " & _
        aReader.Duration.ToString())
    Console.WriteLine("Number of frames in the opened file: " & _
        aReader.FrameCount.ToString())
    Console.WriteLine("Number of metadata fields: " & _
        aReader.Metadata.Count.ToString())
End Sub
C#
private void GetQTReaderProperties(QTReader aReader)
{
    Console.WriteLine("Framework priority: " +
        aReader.CodecPriority.ToString());
    Console.WriteLine("Duration of the opened file: " +
        aReader.Duration.ToString());
    Console.WriteLine("Number of frames in the opened file: " +
        aReader.FrameCount.ToString());
    Console.WriteLine("Number of metadata fields: " +
        aReader.Metadata.Count.ToString());
}

See Also

Reference