com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class AviRootPackage

  • All Implemented Interfaces:
    IXmp, Iterable<MetadataProperty>


    public class AviRootPackage
    extends RootMetadataPackage
    implements IXmp

    Represents the root package allowing working with metadata in an AVI video.

    This code snippet shows how to read AVI header properties.

    try (Metadata metadata = new Metadata(Constants.InputAvi)) {
         AviRootPackage root = metadata.getRootPackageGeneric();
         System.out.println(root.getHeader().getAviHeaderFlags());
         System.out.println(root.getHeader().getHeight());
         System.out.println(root.getHeader().getWidth());
         System.out.println(root.getHeader().getTotalFrames());
         System.out.println(root.getHeader().getInitialFrames());
         System.out.println(root.getHeader().getMaxBytesPerSec());
         System.out.println(root.getHeader().getPaddingGranularity());
         System.out.println(root.getHeader().getStreams());
         // ...
     }
     
    • Method Detail

      • getXmpPackage

        public final XmpPacketWrapper getXmpPackage()

        Gets the XMP metadata package.

        Specified by:
        getXmpPackage in interface IXmp
        Returns:
        The XMP metadata package.
      • setXmpPackage

        public final void setXmpPackage(XmpPacketWrapper value)

        Sets the XMP metadata package.

        Specified by:
        setXmpPackage in interface IXmp
        Parameters:
        value - The XMP metadata package.
      • getHeader

        public final AviHeader getHeader()

        Gets the AVI header package.

        Returns:
        The AVI header package.