MpegAudioPackage Class
Represents MPEG audio metadata.
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.CommonMetadataPackage
    GroupDocs.Metadata.CommonCustomPackage
      GroupDocs.Metadata.Formats.MpegMpegAudioPackage

Namespace: GroupDocs.Metadata.Formats.Mpeg
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public sealed class MpegAudioPackage : CustomPackage

The MpegAudioPackage type exposes the following members.

Constructors
  NameDescription
Public methodMpegAudioPackage
Initializes a new instance of the MpegAudioPackage class.
Properties
  NameDescription
Public propertyBitrate
Gets the bitrate.
Public propertyChannelMode
Gets the channel mode.
Public propertyCopyright
Gets the copyright bit.
Public propertyCount
Gets the number of metadata properties.
(Inherited from MetadataPackage.)
Public propertyEmphasis
Gets the emphasis.
Public propertyFrequency
Gets the frequency.
Public propertyHeaderPosition
Gets the header offset.
Public propertyIsOriginal
Gets the original bit.
Public propertyIsProtected
Gets true if protected.
Public propertyItem
Gets the MetadataProperty with the specified name.
(Inherited from MetadataPackage.)
Public propertyKeys
Gets a collection of the metadata property names.
(Inherited from MetadataPackage.)
Public propertyKnowPropertyDescriptors Obsolete.
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.)
Public propertyLayer
Gets the layer description. For an MP3 audio it is '3'.
Public propertyMetadataType
Gets the metadata type.
(Inherited from MetadataPackage.)
Public propertyModeExtensionBits
Gets the mode extension bits.
Public propertyMpegAudioVersion
Gets the MPEG audio version. Can be MPEG-1, MPEG-2 etc.
Public propertyPaddingBit
Gets the padding bit.
Public propertyPrivateBit
Gets a value indicating whether [private bit].
Public propertyPropertyDescriptors
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.)
Methods
  NameDescription
Public methodAddProperties
Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodContains
Determines whether the package contains a metadata property with the specified name.
(Inherited from MetadataPackage.)
Public methodEquals (Inherited from Object.)
Public methodFindProperties
Finds the metadata properties satisfying the specified predicate. The search is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from MetadataPackage.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRemoveProperties
Removes metadata properties satisfying the specified predicate.
(Inherited from MetadataPackage.)
Public methodSanitize
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Public methodSetProperties
Sets known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. This method is a combination of AddProperties(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue). If an existing property satisfies the predicate its value is updated. If there is a known property missing in the package that satisfies the predicate it is added to the package.
(Inherited from MetadataPackage.)
Public methodToString (Inherited from Object.)
Public methodUpdateProperties
Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.)
Examples
This example demonstrates how to read MPEG audio metadata from an MP3 file.
C#
using (Metadata metadata = new Metadata(Constants.MP3WithID3V2))
{
    var root = metadata.GetRootPackage<MP3RootPackage>();

    Console.WriteLine(root.MpegAudioPackage.Bitrate);
    Console.WriteLine(root.MpegAudioPackage.ChannelMode);
    Console.WriteLine(root.MpegAudioPackage.Emphasis);
    Console.WriteLine(root.MpegAudioPackage.Frequency);
    Console.WriteLine(root.MpegAudioPackage.HeaderPosition);
    Console.WriteLine(root.MpegAudioPackage.Layer);

    // ...
}
See Also