NHNTSample

### Overview

The `NHNTSample` element describes an access unit, or a fragment of an access unit.

Each element may contain zero or one `SubSamples` element.
Each element may contain zero or more `SAI` elements.

If an `NHNTSample` has the same decode time than the previous `NHNTSample`, it is a continuation fragment of the frame started at that time. In this case, the fragment packet has no timing info, no SAP info and no dependency info. Subsamples and side data should not be used in this case.

  
### Defined Attributes

*   `DTS` or `time` : decoding time stamp of the sample. If not set, the previous sample DTS (or 0) plus the specified `DTS_increment` or the previous sample `duration` is used. Value type: unsigned integer or `HH:MM:SS.ms`. Default Value: 0.
*   `duration` : sets the duration of the sample. The duration set on the last sample will change the track duration. Default Value: 0.
*   `CTSOffset` : offset between the decoding and the composition time stamp of the sample. Value type: unsigned integer. Default Value: 0.
*   `isRAP` : indicates if the sample is a random access point or not. Value type: "yes", "no" or SAP type value (0 to 5). Default Value: "no".
*   `isSyncShadow` : indicates if the sample is a sync shadow sample (IsoMedia storage only). Value type: "yes", "no". Default Value: "no".
*   `mediaOffset` : indicates the position of the first byte of this sample in the media source file. Value type: unsigned integer. Default Value: 0.
*   `dataLength` : indicates the size of this sample. Value type: unsigned integer. Default Value: 0.
*   `mediaFile` : indicates the media source file to use. If not set, the `baseMediaFile` is used. If  `base64,` prefix is present in the name, data is loaded from the attribute value. Value type: string. Default Value: null.
*   `xmlFrom` : if the source file is XML data, indicates the location of the first element to copy fom the XML document. The location can be "doc.start", "elt\_id.start" or "elt\_id.end". Elements are identified through their "id", "xml:id" or "DEF" attributes.
*   `xmlTo` : if the source file is XML data, indicates the location of the last element to copy fom the XML document. The location can be "doc.end", "elt\_id.start" or "elt\_id.end". Elements are identified through their "id", "xml:id" or "DEF" attributes.
*   `is-Scene` : DIMS is-scene flag. Value type: boolean. Default Value: `no`.
*   `is-RAP` : DIMS is-rap flag. Value type: boolean. Default Value: `no`.
*   `is-redundant` : DIMS is-redundant flag. Value type: boolean. Default Value: `no`.
*   `redundant-exit` : DIMS redundant-exit flag. Value type: boolean. Default Value: `no`.
*   `priority` : DIMS priority flag. Value type: boolean. Default Value: `no`.
*   `compress` : DIMS compress flag. Value type: boolean. Default Value: `no`.

A `NHNTSample` can use [XML bitstream constructors](XML-Binary) in its children. If it does, the sample data (if any) is extended with the result of the binarized XML of the children if no `Media` child is present, or with the result of the binarized XML of the `Media` child.

The `Media` wrapping is required when combining both  XML construction for sample data and `SAI` children.

__WARNING Support for `Media` wrapping requires GPAC 2.0 or above.__