Package com.wowza.wms.transport.mpeg2
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 ObjectThe Class Descriptor.
- 
- 
Field SummaryFields Modifier and Type Field Description byte[]dataThe data.static intDESCRIPTOR_TAG_AAC_DVBThe Constant DESCRIPTOR_TAG_AAC_DVBstatic intDESCRIPTOR_TAG_AAC_SCTEThe Constant DESCRIPTOR_TAG_AAC_SCTE.static intDESCRIPTOR_TAG_AC3The Constant DESCRIPTOR_TAG_AC3.static intDESCRIPTOR_TAG_ANCILLARYThe Constant DESCRIPTOR_TAG_ANCILLARYstatic intDESCRIPTOR_TAG_AUDIOThe Constant DESCRIPTOR_TAG_AUDIO.static intDESCRIPTOR_TAG_CAThe Constant DESCRIPTOR_TAG_CA.static intDESCRIPTOR_TAG_COPYRIGHTThe Constant DESCRIPTOR_TAG_COPYRIGHT.static intDESCRIPTOR_TAG_CUE_IDENTIFIERThe Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.static intDESCRIPTOR_TAG_DATA_STREAM_ALIGNThe Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.static intDESCRIPTOR_TAG_DVBTELETEXTThe Constant DESCRIPTOR_TAG_DVBTELETEXT.static intDESCRIPTOR_TAG_ENHANCED_AC3The Constant DESCRIPTOR_TAG_ENHANCED_AC3.static intDESCRIPTOR_TAG_EXT_ES_IDThe Constant DESCRIPTOR_TAG_EXT_ES_ID.static intDESCRIPTOR_TAG_EXTENSION_DVBThe Constant DESCRIPTOR_TAG_EXTENSION_DVBstatic intDESCRIPTOR_TAG_EXTENSION_MP4_LOASThe Constant DESCRIPTOR_TAG_MP4_LOASstatic intDESCRIPTOR_TAG_FLEX_MUX_TIMINGThe Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.static intDESCRIPTOR_TAG_FMCThe Constant DESCRIPTOR_TAG_FMC.static intDESCRIPTOR_TAG_FMX_BUFSIZEThe Constant DESCRIPTOR_TAG_FMX_BUFSIZE.static intDESCRIPTOR_TAG_HIERARCHYThe Constant DESCRIPTOR_TAG_HIERARCHY.static intDESCRIPTOR_TAG_IBPThe Constant DESCRIPTOR_TAG_IBP.static intDESCRIPTOR_TAG_IODThe Constant DESCRIPTOR_TAG_IOD.static intDESCRIPTOR_TAG_ISO_639_LANGThe Constant DESCRIPTOR_TAG_ISO_639_LANG.static intDESCRIPTOR_TAG_MAX_BITRATEThe Constant DESCRIPTOR_TAG_MAX_BITRATE.static intDESCRIPTOR_TAG_METADATAThe Constant DESCRIPTOR_TAG_METADATA.static intDESCRIPTOR_TAG_METADATA_POINTERThe Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTORstatic intDESCRIPTOR_TAG_METADATA_STDThe Constant DESCRIPTOR_TAG_METADATA_STD.static intDESCRIPTOR_TAG_MP4_AUDIOThe Constant DESCRIPTOR_TAG_MP4_AUDIO.static intDESCRIPTOR_TAG_MP4_VIDEOThe Constant DESCRIPTOR_TAG_MP4_VIDEO.static intDESCRIPTOR_TAG_MULTIPLE_BUFThe Constant DESCRIPTOR_TAG_MULTIPLE_BUF.static intDESCRIPTOR_TAG_MULTIPLEX_BUF_UTILThe Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.static intDESCRIPTOR_TAG_MUXCODEThe Constant DESCRIPTOR_TAG_MUXCODE.static intDESCRIPTOR_TAG_PRIVATE_DATAThe Constant DESCRIPTOR_TAG_PRIVATE_DATA.static intDESCRIPTOR_TAG_REGISTRATIONThe Constant DESCRIPTOR_TAG_REGISTRATION.static intDESCRIPTOR_TAG_SLThe Constant DESCRIPTOR_TAG_SL.static intDESCRIPTOR_TAG_SMOOTHING_BUFThe Constant DESCRIPTOR_TAG_SMOOTHING_BUF.static intDESCRIPTOR_TAG_STDThe Constant DESCRIPTOR_TAG_STD.static intDESCRIPTOR_TAG_STREAM_IDENTIFIERThe Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.static intDESCRIPTOR_TAG_SYSTEM_CLOCKThe Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.static intDESCRIPTOR_TAG_TGT_BACKGRD_GRIDThe Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.static intDESCRIPTOR_TAG_VIDEOThe Constant DESCRIPTOR_TAG_VIDEO.static intDESCRIPTOR_TAG_VIDEO_WINDOWSThe Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.intlengthThe length.inttagThe tag.
 - 
Constructor SummaryConstructors Constructor Description Descriptor()Instantiates a new descriptor.Descriptor(java.nio.ByteBuffer descriptorData)Instantiates a new descriptor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinarySize()How big is the descriptor in binary.static DescriptordecodeDescriptor(java.nio.ByteBuffer descriptorData)Decode descriptor.voiddecodeDescriptorData(java.nio.ByteBuffer descriptorData)Decode descriptor data.StringgetDataAsBase64()static StringgetDescriptorName(int tag)StringgetShortClassName()getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNameAMFDataObjserializeAMF(SpliceInformationTableSerializeAMFContext context)voidtoBin(java.nio.ByteBuffer buffer)Encodes the descriptor into binary format for use in a transportStringtoDebugString()StringtoString()
 
- 
- 
- 
Field Detail- 
DESCRIPTOR_TAG_VIDEOpublic static final int DESCRIPTOR_TAG_VIDEO The Constant DESCRIPTOR_TAG_VIDEO.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_AUDIOpublic static final int DESCRIPTOR_TAG_AUDIO The Constant DESCRIPTOR_TAG_AUDIO.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_HIERARCHYpublic static final int DESCRIPTOR_TAG_HIERARCHY The Constant DESCRIPTOR_TAG_HIERARCHY.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_REGISTRATIONpublic static final int DESCRIPTOR_TAG_REGISTRATION The Constant DESCRIPTOR_TAG_REGISTRATION.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_DATA_STREAM_ALIGNpublic static final int DESCRIPTOR_TAG_DATA_STREAM_ALIGN The Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_TGT_BACKGRD_GRIDpublic static final int DESCRIPTOR_TAG_TGT_BACKGRD_GRID The Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_VIDEO_WINDOWSpublic static final int DESCRIPTOR_TAG_VIDEO_WINDOWS The Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_CApublic static final int DESCRIPTOR_TAG_CA The Constant DESCRIPTOR_TAG_CA.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_ISO_639_LANGpublic static final int DESCRIPTOR_TAG_ISO_639_LANG The Constant DESCRIPTOR_TAG_ISO_639_LANG.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_SYSTEM_CLOCKpublic static final int DESCRIPTOR_TAG_SYSTEM_CLOCK The Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MULTIPLEX_BUF_UTILpublic static final int DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL The Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_COPYRIGHTpublic static final int DESCRIPTOR_TAG_COPYRIGHT The Constant DESCRIPTOR_TAG_COPYRIGHT.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MAX_BITRATEpublic static final int DESCRIPTOR_TAG_MAX_BITRATE The Constant DESCRIPTOR_TAG_MAX_BITRATE.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_PRIVATE_DATApublic static final int DESCRIPTOR_TAG_PRIVATE_DATA The Constant DESCRIPTOR_TAG_PRIVATE_DATA.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_SMOOTHING_BUFpublic static final int DESCRIPTOR_TAG_SMOOTHING_BUF The Constant DESCRIPTOR_TAG_SMOOTHING_BUF.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_STDpublic static final int DESCRIPTOR_TAG_STD The Constant DESCRIPTOR_TAG_STD.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_IBPpublic static final int DESCRIPTOR_TAG_IBP The Constant DESCRIPTOR_TAG_IBP.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MP4_VIDEOpublic static final int DESCRIPTOR_TAG_MP4_VIDEO The Constant DESCRIPTOR_TAG_MP4_VIDEO.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MP4_AUDIOpublic static final int DESCRIPTOR_TAG_MP4_AUDIO The Constant DESCRIPTOR_TAG_MP4_AUDIO.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_IODpublic static final int DESCRIPTOR_TAG_IOD The Constant DESCRIPTOR_TAG_IOD.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_SLpublic static final int DESCRIPTOR_TAG_SL The Constant DESCRIPTOR_TAG_SL.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_FMCpublic static final int DESCRIPTOR_TAG_FMC The Constant DESCRIPTOR_TAG_FMC.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_EXT_ES_IDpublic static final int DESCRIPTOR_TAG_EXT_ES_ID The Constant DESCRIPTOR_TAG_EXT_ES_ID.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MUXCODEpublic static final int DESCRIPTOR_TAG_MUXCODE The Constant DESCRIPTOR_TAG_MUXCODE.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_FMX_BUFSIZEpublic static final int DESCRIPTOR_TAG_FMX_BUFSIZE The Constant DESCRIPTOR_TAG_FMX_BUFSIZE.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_MULTIPLE_BUFpublic static final int DESCRIPTOR_TAG_MULTIPLE_BUF The Constant DESCRIPTOR_TAG_MULTIPLE_BUF.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_FLEX_MUX_TIMINGpublic static final int DESCRIPTOR_TAG_FLEX_MUX_TIMING The Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_METADATA_POINTERpublic static final int DESCRIPTOR_TAG_METADATA_POINTER The Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTOR- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_METADATApublic static final int DESCRIPTOR_TAG_METADATA The Constant DESCRIPTOR_TAG_METADATA.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_METADATA_STDpublic static final int DESCRIPTOR_TAG_METADATA_STD The Constant DESCRIPTOR_TAG_METADATA_STD.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_EXTENSION_MP4_LOASpublic static final int DESCRIPTOR_TAG_EXTENSION_MP4_LOAS The Constant DESCRIPTOR_TAG_MP4_LOAS- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_STREAM_IDENTIFIERpublic static final int DESCRIPTOR_TAG_STREAM_IDENTIFIER The Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_DVBTELETEXTpublic static final int DESCRIPTOR_TAG_DVBTELETEXT The Constant DESCRIPTOR_TAG_DVBTELETEXT.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_AC3public static final int DESCRIPTOR_TAG_AC3 The Constant DESCRIPTOR_TAG_AC3.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_ANCILLARYpublic static final int DESCRIPTOR_TAG_ANCILLARY The Constant DESCRIPTOR_TAG_ANCILLARY- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_ENHANCED_AC3public static final int DESCRIPTOR_TAG_ENHANCED_AC3 The Constant DESCRIPTOR_TAG_ENHANCED_AC3.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_AAC_DVBpublic static final int DESCRIPTOR_TAG_AAC_DVB The Constant DESCRIPTOR_TAG_AAC_DVB- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_EXTENSION_DVBpublic static final int DESCRIPTOR_TAG_EXTENSION_DVB The Constant DESCRIPTOR_TAG_EXTENSION_DVB- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_CUE_IDENTIFIERpublic static final int DESCRIPTOR_TAG_CUE_IDENTIFIER The Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.- See Also:
- Constant Field Values
 
 - 
DESCRIPTOR_TAG_AAC_SCTEpublic static final int DESCRIPTOR_TAG_AAC_SCTE The Constant DESCRIPTOR_TAG_AAC_SCTE.- See Also:
- Constant Field Values
 
 - 
tagpublic int tag The tag.
 - 
lengthpublic int length The length.
 - 
datapublic byte[] data The data.
 
- 
 - 
Method Detail- 
decodeDescriptorDatapublic void decodeDescriptorData(java.nio.ByteBuffer descriptorData) Decode descriptor data.- Parameters:
- descriptorData- the descriptor data
 
 - 
toBinpublic void toBin(java.nio.ByteBuffer buffer) Encodes the descriptor into binary format for use in a transport- Parameters:
- buffer- a ByteBuffer to put the descriptor binary data into
 
 - 
binarySizepublic int binarySize() How big is the descriptor in binary.- Returns:
- the total size of the descriptor in binary form, includes tag and length fields
 
 - 
decodeDescriptorpublic static Descriptor decodeDescriptor(java.nio.ByteBuffer descriptorData) Decode descriptor.- Parameters:
- descriptorData- the descriptor data
- Returns:
- the descriptor
 
 - 
getShortClassNamepublic String getShortClassName() getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
 - 
getDescriptorNamepublic static String getDescriptorName(int tag) 
 - 
serializeAMFpublic AMFDataObj serializeAMF(SpliceInformationTableSerializeAMFContext context) 
 - 
getDataAsBase64public String getDataAsBase64() 
 - 
toDebugStringpublic String toDebugString() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Object
 
 
- 
 
-