---
title: "QTReader..::.CodecPriority Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_QTReader_CodecPriority.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# QTReader.CodecPriority Property 
 
Returns the priority of the codec.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
 
## Syntax
  
```
Public Overrides NotOverridable ReadOnly Property CodecPriority As Integer
```
 
```csharp
public override sealed int CodecPriority { get; }
```
 
### Property Value
The priority of the codec.
 
### Implements
 
[IFormatReader.CodecPriority](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_IFormatReader_CodecPriority.htm.md)
 
## Remarks
  
Graphics Mill uses this value to resolve the conflict when several codec classes are used to open to the same file format. It will choose the codec class which has the higher priority.
 
## Examples
 This example shows how to get reader properties. ```
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
``````csharp
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

- [QTReader Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_QTReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
