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
The Class Descriptor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]
The data.static final int
The Constant DESCRIPTOR_TAG_AAC_DVBstatic final int
The Constant DESCRIPTOR_TAG_AAC_SCTE.static final int
The Constant DESCRIPTOR_TAG_AC3.static final int
The Constant DESCRIPTOR_TAG_ANCILLARYstatic final int
The Constant DESCRIPTOR_TAG_AUDIO.static final int
The Constant DESCRIPTOR_TAG_CA.static final int
The Constant DESCRIPTOR_TAG_COPYRIGHT.static final int
The Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.static final int
The Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.static final int
The Constant DESCRIPTOR_TAG_DVBTELETEXT.static final int
The Constant DESCRIPTOR_TAG_ENHANCED_AC3.static final int
The Constant DESCRIPTOR_TAG_EXT_ES_ID.static final int
The Constant DESCRIPTOR_TAG_EXTENSION_DVBstatic final int
The Constant DESCRIPTOR_TAG_MP4_LOASstatic final int
The Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.static final int
The Constant DESCRIPTOR_TAG_FMC.static final int
The Constant DESCRIPTOR_TAG_FMX_BUFSIZE.static final int
The Constant DESCRIPTOR_TAG_HIERARCHY.static final int
The Constant DESCRIPTOR_TAG_IBP.static final int
The Constant DESCRIPTOR_TAG_IOD.static final int
The Constant DESCRIPTOR_TAG_ISO_639_LANG.static final int
The Constant DESCRIPTOR_TAG_MAX_BITRATE.static final int
The Constant DESCRIPTOR_TAG_METADATA.static final int
The Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTORstatic final int
The Constant DESCRIPTOR_TAG_METADATA_STD.static final int
The Constant DESCRIPTOR_TAG_MP4_AUDIO.static final int
The Constant DESCRIPTOR_TAG_MP4_VIDEO.static final int
The Constant DESCRIPTOR_TAG_MULTIPLE_BUF.static final int
The Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.static final int
The Constant DESCRIPTOR_TAG_MUXCODE.static final int
The Constant DESCRIPTOR_TAG_PRIVATE_DATA.static final int
The Constant DESCRIPTOR_TAG_REGISTRATION.static final int
The Constant DESCRIPTOR_TAG_SL.static final int
The Constant DESCRIPTOR_TAG_SMOOTHING_BUF.static final int
The Constant DESCRIPTOR_TAG_STD.static final int
The Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.static final int
The Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.static final int
The Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.static final int
The Constant DESCRIPTOR_TAG_VIDEO.static final int
The Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.int
The length.int
The tag. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new descriptor.Descriptor
(ByteBuffer descriptorData) Instantiates a new descriptor. -
Method Summary
Modifier and TypeMethodDescriptionint
How big is the descriptor in binary.static Descriptor
decodeDescriptor
(ByteBuffer descriptorData) Decode descriptor.void
decodeDescriptorData
(ByteBuffer descriptorData) Decode descriptor data.static String
getDescriptorName
(int tag) getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNamevoid
toBin
(ByteBuffer buffer) Encodes the descriptor into binary format for use in a transporttoString()
-
Field Details
-
DESCRIPTOR_TAG_VIDEO
public static final int DESCRIPTOR_TAG_VIDEOThe Constant DESCRIPTOR_TAG_VIDEO.- See Also:
-
DESCRIPTOR_TAG_AUDIO
public static final int DESCRIPTOR_TAG_AUDIOThe Constant DESCRIPTOR_TAG_AUDIO.- See Also:
-
DESCRIPTOR_TAG_HIERARCHY
public static final int DESCRIPTOR_TAG_HIERARCHYThe Constant DESCRIPTOR_TAG_HIERARCHY.- See Also:
-
DESCRIPTOR_TAG_REGISTRATION
public static final int DESCRIPTOR_TAG_REGISTRATIONThe Constant DESCRIPTOR_TAG_REGISTRATION.- See Also:
-
DESCRIPTOR_TAG_DATA_STREAM_ALIGN
public static final int DESCRIPTOR_TAG_DATA_STREAM_ALIGNThe Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.- See Also:
-
DESCRIPTOR_TAG_TGT_BACKGRD_GRID
public static final int DESCRIPTOR_TAG_TGT_BACKGRD_GRIDThe Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.- See Also:
-
DESCRIPTOR_TAG_VIDEO_WINDOWS
public static final int DESCRIPTOR_TAG_VIDEO_WINDOWSThe Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.- See Also:
-
DESCRIPTOR_TAG_CA
public static final int DESCRIPTOR_TAG_CAThe Constant DESCRIPTOR_TAG_CA.- See Also:
-
DESCRIPTOR_TAG_ISO_639_LANG
public static final int DESCRIPTOR_TAG_ISO_639_LANGThe Constant DESCRIPTOR_TAG_ISO_639_LANG.- See Also:
-
DESCRIPTOR_TAG_SYSTEM_CLOCK
public static final int DESCRIPTOR_TAG_SYSTEM_CLOCKThe Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.- See Also:
-
DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL
public static final int DESCRIPTOR_TAG_MULTIPLEX_BUF_UTILThe Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.- See Also:
-
DESCRIPTOR_TAG_COPYRIGHT
public static final int DESCRIPTOR_TAG_COPYRIGHTThe Constant DESCRIPTOR_TAG_COPYRIGHT.- See Also:
-
DESCRIPTOR_TAG_MAX_BITRATE
public static final int DESCRIPTOR_TAG_MAX_BITRATEThe Constant DESCRIPTOR_TAG_MAX_BITRATE.- See Also:
-
DESCRIPTOR_TAG_PRIVATE_DATA
public static final int DESCRIPTOR_TAG_PRIVATE_DATAThe Constant DESCRIPTOR_TAG_PRIVATE_DATA.- See Also:
-
DESCRIPTOR_TAG_SMOOTHING_BUF
public static final int DESCRIPTOR_TAG_SMOOTHING_BUFThe Constant DESCRIPTOR_TAG_SMOOTHING_BUF.- See Also:
-
DESCRIPTOR_TAG_STD
public static final int DESCRIPTOR_TAG_STDThe Constant DESCRIPTOR_TAG_STD.- See Also:
-
DESCRIPTOR_TAG_IBP
public static final int DESCRIPTOR_TAG_IBPThe Constant DESCRIPTOR_TAG_IBP.- See Also:
-
DESCRIPTOR_TAG_MP4_VIDEO
public static final int DESCRIPTOR_TAG_MP4_VIDEOThe Constant DESCRIPTOR_TAG_MP4_VIDEO.- See Also:
-
DESCRIPTOR_TAG_MP4_AUDIO
public static final int DESCRIPTOR_TAG_MP4_AUDIOThe Constant DESCRIPTOR_TAG_MP4_AUDIO.- See Also:
-
DESCRIPTOR_TAG_IOD
public static final int DESCRIPTOR_TAG_IODThe Constant DESCRIPTOR_TAG_IOD.- See Also:
-
DESCRIPTOR_TAG_SL
public static final int DESCRIPTOR_TAG_SLThe Constant DESCRIPTOR_TAG_SL.- See Also:
-
DESCRIPTOR_TAG_FMC
public static final int DESCRIPTOR_TAG_FMCThe Constant DESCRIPTOR_TAG_FMC.- See Also:
-
DESCRIPTOR_TAG_EXT_ES_ID
public static final int DESCRIPTOR_TAG_EXT_ES_IDThe Constant DESCRIPTOR_TAG_EXT_ES_ID.- See Also:
-
DESCRIPTOR_TAG_MUXCODE
public static final int DESCRIPTOR_TAG_MUXCODEThe Constant DESCRIPTOR_TAG_MUXCODE.- See Also:
-
DESCRIPTOR_TAG_FMX_BUFSIZE
public static final int DESCRIPTOR_TAG_FMX_BUFSIZEThe Constant DESCRIPTOR_TAG_FMX_BUFSIZE.- See Also:
-
DESCRIPTOR_TAG_MULTIPLE_BUF
public static final int DESCRIPTOR_TAG_MULTIPLE_BUFThe Constant DESCRIPTOR_TAG_MULTIPLE_BUF.- See Also:
-
DESCRIPTOR_TAG_FLEX_MUX_TIMING
public static final int DESCRIPTOR_TAG_FLEX_MUX_TIMINGThe Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.- See Also:
-
DESCRIPTOR_TAG_METADATA_POINTER
public static final int DESCRIPTOR_TAG_METADATA_POINTERThe Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTOR- See Also:
-
DESCRIPTOR_TAG_METADATA
public static final int DESCRIPTOR_TAG_METADATAThe Constant DESCRIPTOR_TAG_METADATA.- See Also:
-
DESCRIPTOR_TAG_METADATA_STD
public static final int DESCRIPTOR_TAG_METADATA_STDThe Constant DESCRIPTOR_TAG_METADATA_STD.- See Also:
-
DESCRIPTOR_TAG_EXTENSION_MP4_LOAS
public static final int DESCRIPTOR_TAG_EXTENSION_MP4_LOASThe Constant DESCRIPTOR_TAG_MP4_LOAS- See Also:
-
DESCRIPTOR_TAG_STREAM_IDENTIFIER
public static final int DESCRIPTOR_TAG_STREAM_IDENTIFIERThe Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.- See Also:
-
DESCRIPTOR_TAG_DVBTELETEXT
public static final int DESCRIPTOR_TAG_DVBTELETEXTThe Constant DESCRIPTOR_TAG_DVBTELETEXT.- See Also:
-
DESCRIPTOR_TAG_AC3
public static final int DESCRIPTOR_TAG_AC3The Constant DESCRIPTOR_TAG_AC3.- See Also:
-
DESCRIPTOR_TAG_ANCILLARY
public static final int DESCRIPTOR_TAG_ANCILLARYThe Constant DESCRIPTOR_TAG_ANCILLARY- See Also:
-
DESCRIPTOR_TAG_ENHANCED_AC3
public static final int DESCRIPTOR_TAG_ENHANCED_AC3The Constant DESCRIPTOR_TAG_ENHANCED_AC3.- See Also:
-
DESCRIPTOR_TAG_AAC_DVB
public static final int DESCRIPTOR_TAG_AAC_DVBThe Constant DESCRIPTOR_TAG_AAC_DVB- See Also:
-
DESCRIPTOR_TAG_EXTENSION_DVB
public static final int DESCRIPTOR_TAG_EXTENSION_DVBThe Constant DESCRIPTOR_TAG_EXTENSION_DVB- See Also:
-
DESCRIPTOR_TAG_CUE_IDENTIFIER
public static final int DESCRIPTOR_TAG_CUE_IDENTIFIERThe Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.- See Also:
-
DESCRIPTOR_TAG_AAC_SCTE
public static final int DESCRIPTOR_TAG_AAC_SCTEThe Constant DESCRIPTOR_TAG_AAC_SCTE.- See Also:
-
tag
public int tagThe tag. -
length
public int lengthThe length. -
data
public byte[] dataThe data.
-
-
Constructor Details
-
Descriptor
public Descriptor()Instantiates a new descriptor. -
Descriptor
Instantiates a new descriptor.- Parameters:
descriptorData
- the descriptor data
-
-
Method Details
-
decodeDescriptorData
Decode descriptor data.- Parameters:
descriptorData
- the descriptor data
-
toBin
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
Decode descriptor.- Parameters:
descriptorData
- the descriptor data- Returns:
- the descriptor
-
getShortClassName
getShortClassName returns just the class name instead of the com.wms.xxx.xx.className -
getDescriptorName
-
serializeAMF
-
getDataAsBase64
-
toDebugString
-
toString
-