Gets the duration of the audio or video file.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
Public ReadOnly Property Duration As Integer
public int Duration { get; }
Private Sub GetDSReaderProperties(ByVal aReader As DSReader) 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()) End Sub
private void GetDSReaderProperties(DSReader 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()); }