Class Descriptor

Object
com.wowza.wms.transport.mpeg2.Descriptor
Direct Known Subclasses:
AACDVBDescriptor, AACSCTEDescriptor, AC3Descriptor, AncillaryDataDescriptor, CUEIdentifierDescriptor, ExtensionDVBDescriptor, LanguageDescriptor, MetadataDescriptor, MetaDataPointerDescriptor, MetadataSTDDescriptor, MP4AudioDescriptor, MP4AudioExtensionLOAS, RegistrationDescriptor, SpliceAvailDescriptor, SpliceDTMFDescriptor, SpliceSegmentationDescriptor, StreamIdentifierDescriptor, VideoStreamDescriptor

public class Descriptor extends Object
The Class Descriptor.
  • Field Details

    • DESCRIPTOR_TAG_VIDEO

      public static final int DESCRIPTOR_TAG_VIDEO
      The Constant DESCRIPTOR_TAG_VIDEO.
      See Also:
    • DESCRIPTOR_TAG_AUDIO

      public static final int DESCRIPTOR_TAG_AUDIO
      The Constant DESCRIPTOR_TAG_AUDIO.
      See Also:
    • DESCRIPTOR_TAG_HIERARCHY

      public static final int DESCRIPTOR_TAG_HIERARCHY
      The Constant DESCRIPTOR_TAG_HIERARCHY.
      See Also:
    • DESCRIPTOR_TAG_REGISTRATION

      public static final int DESCRIPTOR_TAG_REGISTRATION
      The Constant DESCRIPTOR_TAG_REGISTRATION.
      See Also:
    • DESCRIPTOR_TAG_DATA_STREAM_ALIGN

      public static final int DESCRIPTOR_TAG_DATA_STREAM_ALIGN
      The Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.
      See Also:
    • DESCRIPTOR_TAG_TGT_BACKGRD_GRID

      public static final int DESCRIPTOR_TAG_TGT_BACKGRD_GRID
      The Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.
      See Also:
    • DESCRIPTOR_TAG_VIDEO_WINDOWS

      public static final int DESCRIPTOR_TAG_VIDEO_WINDOWS
      The Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.
      See Also:
    • DESCRIPTOR_TAG_CA

      public static final int DESCRIPTOR_TAG_CA
      The Constant DESCRIPTOR_TAG_CA.
      See Also:
    • DESCRIPTOR_TAG_ISO_639_LANG

      public static final int DESCRIPTOR_TAG_ISO_639_LANG
      The Constant DESCRIPTOR_TAG_ISO_639_LANG.
      See Also:
    • DESCRIPTOR_TAG_SYSTEM_CLOCK

      public static final int DESCRIPTOR_TAG_SYSTEM_CLOCK
      The Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.
      See Also:
    • DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL

      public static final int DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL
      The Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.
      See Also:
    • DESCRIPTOR_TAG_MAX_BITRATE

      public static final int DESCRIPTOR_TAG_MAX_BITRATE
      The Constant DESCRIPTOR_TAG_MAX_BITRATE.
      See Also:
    • DESCRIPTOR_TAG_PRIVATE_DATA

      public static final int DESCRIPTOR_TAG_PRIVATE_DATA
      The Constant DESCRIPTOR_TAG_PRIVATE_DATA.
      See Also:
    • DESCRIPTOR_TAG_SMOOTHING_BUF

      public static final int DESCRIPTOR_TAG_SMOOTHING_BUF
      The Constant DESCRIPTOR_TAG_SMOOTHING_BUF.
      See Also:
    • DESCRIPTOR_TAG_STD

      public static final int DESCRIPTOR_TAG_STD
      The Constant DESCRIPTOR_TAG_STD.
      See Also:
    • DESCRIPTOR_TAG_IBP

      public static final int DESCRIPTOR_TAG_IBP
      The Constant DESCRIPTOR_TAG_IBP.
      See Also:
    • DESCRIPTOR_TAG_MP4_VIDEO

      public static final int DESCRIPTOR_TAG_MP4_VIDEO
      The Constant DESCRIPTOR_TAG_MP4_VIDEO.
      See Also:
    • DESCRIPTOR_TAG_MP4_AUDIO

      public static final int DESCRIPTOR_TAG_MP4_AUDIO
      The Constant DESCRIPTOR_TAG_MP4_AUDIO.
      See Also:
    • DESCRIPTOR_TAG_IOD

      public static final int DESCRIPTOR_TAG_IOD
      The Constant DESCRIPTOR_TAG_IOD.
      See Also:
    • DESCRIPTOR_TAG_SL

      public static final int DESCRIPTOR_TAG_SL
      The Constant DESCRIPTOR_TAG_SL.
      See Also:
    • DESCRIPTOR_TAG_FMC

      public static final int DESCRIPTOR_TAG_FMC
      The Constant DESCRIPTOR_TAG_FMC.
      See Also:
    • DESCRIPTOR_TAG_EXT_ES_ID

      public static final int DESCRIPTOR_TAG_EXT_ES_ID
      The Constant DESCRIPTOR_TAG_EXT_ES_ID.
      See Also:
    • DESCRIPTOR_TAG_MUXCODE

      public static final int DESCRIPTOR_TAG_MUXCODE
      The Constant DESCRIPTOR_TAG_MUXCODE.
      See Also:
    • DESCRIPTOR_TAG_FMX_BUFSIZE

      public static final int DESCRIPTOR_TAG_FMX_BUFSIZE
      The Constant DESCRIPTOR_TAG_FMX_BUFSIZE.
      See Also:
    • DESCRIPTOR_TAG_MULTIPLE_BUF

      public static final int DESCRIPTOR_TAG_MULTIPLE_BUF
      The Constant DESCRIPTOR_TAG_MULTIPLE_BUF.
      See Also:
    • DESCRIPTOR_TAG_FLEX_MUX_TIMING

      public static final int DESCRIPTOR_TAG_FLEX_MUX_TIMING
      The Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.
      See Also:
    • DESCRIPTOR_TAG_METADATA_POINTER

      public static final int DESCRIPTOR_TAG_METADATA_POINTER
      The Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTOR
      See Also:
    • DESCRIPTOR_TAG_METADATA

      public static final int DESCRIPTOR_TAG_METADATA
      The Constant DESCRIPTOR_TAG_METADATA.
      See Also:
    • DESCRIPTOR_TAG_METADATA_STD

      public static final int DESCRIPTOR_TAG_METADATA_STD
      The Constant DESCRIPTOR_TAG_METADATA_STD.
      See Also:
    • DESCRIPTOR_TAG_EXTENSION_MP4_LOAS

      public static final int DESCRIPTOR_TAG_EXTENSION_MP4_LOAS
      The Constant DESCRIPTOR_TAG_MP4_LOAS
      See Also:
    • DESCRIPTOR_TAG_STREAM_IDENTIFIER

      public static final int DESCRIPTOR_TAG_STREAM_IDENTIFIER
      The Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.
      See Also:
    • DESCRIPTOR_TAG_DVBTELETEXT

      public static final int DESCRIPTOR_TAG_DVBTELETEXT
      The Constant DESCRIPTOR_TAG_DVBTELETEXT.
      See Also:
    • DESCRIPTOR_TAG_AC3

      public static final int DESCRIPTOR_TAG_AC3
      The Constant DESCRIPTOR_TAG_AC3.
      See Also:
    • DESCRIPTOR_TAG_ANCILLARY

      public static final int DESCRIPTOR_TAG_ANCILLARY
      The Constant DESCRIPTOR_TAG_ANCILLARY
      See Also:
    • DESCRIPTOR_TAG_ENHANCED_AC3

      public static final int DESCRIPTOR_TAG_ENHANCED_AC3
      The Constant DESCRIPTOR_TAG_ENHANCED_AC3.
      See Also:
    • DESCRIPTOR_TAG_AAC_DVB

      public static final int DESCRIPTOR_TAG_AAC_DVB
      The Constant DESCRIPTOR_TAG_AAC_DVB
      See Also:
    • DESCRIPTOR_TAG_EXTENSION_DVB

      public static final int DESCRIPTOR_TAG_EXTENSION_DVB
      The Constant DESCRIPTOR_TAG_EXTENSION_DVB
      See Also:
    • DESCRIPTOR_TAG_CUE_IDENTIFIER

      public static final int DESCRIPTOR_TAG_CUE_IDENTIFIER
      The Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.
      See Also:
    • DESCRIPTOR_TAG_AAC_SCTE

      public static final int DESCRIPTOR_TAG_AAC_SCTE
      The Constant DESCRIPTOR_TAG_AAC_SCTE.
      See Also:
    • tag

      public int tag
      The tag.
    • length

      public int length
      The length.
    • data

      public byte[] data
      The data.
  • Constructor Details

    • Descriptor

      public Descriptor()
      Instantiates a new descriptor.
    • Descriptor

      public Descriptor(ByteBuffer descriptorData)
      Instantiates a new descriptor.
      Parameters:
      descriptorData - the descriptor data
  • Method Details

    • decodeDescriptorData

      public void decodeDescriptorData(ByteBuffer descriptorData)
      Decode descriptor data.
      Parameters:
      descriptorData - the descriptor data
    • toBin

      public void toBin(ByteBuffer buffer)
      Encodes the descriptor into binary format for use in a transport
      Parameters:
      buffer - a ByteBuffer to put the descriptor binary data into
    • binarySize

      public int binarySize()
      How big is the descriptor in binary.
      Returns:
      the total size of the descriptor in binary form, includes tag and length fields
    • decodeDescriptor

      public static Descriptor decodeDescriptor(ByteBuffer descriptorData)
      Decode descriptor.
      Parameters:
      descriptorData - the descriptor data
      Returns:
      the descriptor
    • getShortClassName

      public String getShortClassName()
      getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
    • getDescriptorName

      public static String getDescriptorName(int tag)
    • serializeAMF

    • getDataAsBase64

      public String getDataAsBase64()
    • toDebugString

      public String toDebugString()
    • toString

      public String toString()
      Overrides:
      toString in class Object