Package com.wowza.wms.transport.mpeg2
Class MPEG2MPTS
- Object
- 
- com.wowza.wms.transport.mpeg2.MPEG2MPTS
 
- 
 public class MPEG2MPTS extends ObjectThe Class mpeg2MPTS.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classMPEG2MPTS.MPEG2MPTSBufferThe Class MPEG2MPTSBuffer.
 - 
Field SummaryFields Modifier and Type Field Description static intINVALIDThe Constant INVALID.longpacketCountThe packet count.static intPID_DATATYPE_PESstatic intPID_DATATYPE_RAWstatic intPID_DATATYPE_SECTIONstatic intPID_DATATYPE_UNKNOWNstatic intTS_PACKETLENThe Constant TS_PACKETLEN.static byteTS_SYNCBYTEThe Constant TS_SYNCBYTE.
 - 
Constructor SummaryConstructors Constructor Description MPEG2MPTS()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetHasM2TSTimeCodes()intgetPCRPid()Gets the pCR pid.StringgetShortClassName()getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNamevoidlisten(IMPEG2StreamListener who)Listen.voidprocessNewBuffer(byte[] bytes, int offset, int count)Process new buffer.voidsetHasM2TSTimeCodes(boolean hasM2TSTimeCodes)voidsetPCRPid(int PID)Sets the pcr pid.voidstartStream(int PID, IMPEG2PacketProcessor parser)Start stream.voidstartStreamAudio(int PID, int codec)Start stream audio.voidstartStreamPAT()Start stream pat.voidstartStreamPMT(ProgramAssociationTable.ProgramEntry program)Start stream pmt.voidstartStreamSCTE(int PID)Start stream scte.voidstartStreamVideo(int PID, int codec)Start stream video.voidstartUserMonitorPES(int PID, IMPEG2UserMonitorPESNotify monitor)voidstartUserMonitorRaw(int PID, IMPEG2UserMonitorRawNotify monitor)voidstartUserMonitorSection(int PID, IMPEG2UserMonitorSectionNotify monitor)voidstopStream(int PID)Stop stream.voidstopStreamPMT(ProgramAssociationTable.ProgramEntry program)Stop stream pmt.voidstopStreamSCTE(int PID)Stop stream scte.
 
- 
- 
- 
Field Detail- 
PID_DATATYPE_UNKNOWNpublic static final int PID_DATATYPE_UNKNOWN - See Also:
- Constant Field Values
 
 - 
PID_DATATYPE_PESpublic static final int PID_DATATYPE_PES - See Also:
- Constant Field Values
 
 - 
PID_DATATYPE_SECTIONpublic static final int PID_DATATYPE_SECTION - See Also:
- Constant Field Values
 
 - 
PID_DATATYPE_RAWpublic static final int PID_DATATYPE_RAW - See Also:
- Constant Field Values
 
 - 
INVALIDpublic static final int INVALID The Constant INVALID.- See Also:
- Constant Field Values
 
 - 
TS_PACKETLENpublic static final int TS_PACKETLEN The Constant TS_PACKETLEN.- See Also:
- Constant Field Values
 
 - 
TS_SYNCBYTEpublic static final byte TS_SYNCBYTE The Constant TS_SYNCBYTE.- See Also:
- Constant Field Values
 
 - 
packetCountpublic long packetCount The packet count.
 
- 
 - 
Method Detail- 
getHasM2TSTimeCodespublic boolean getHasM2TSTimeCodes() 
 - 
setHasM2TSTimeCodespublic void setHasM2TSTimeCodes(boolean hasM2TSTimeCodes) 
 - 
listenpublic void listen(IMPEG2StreamListener who) Listen.- Parameters:
- who- the who
 
 - 
startStreamPATpublic void startStreamPAT() Start stream pat.
 - 
startStreamPMTpublic void startStreamPMT(ProgramAssociationTable.ProgramEntry program) Start stream pmt.- Parameters:
- program- the program
 
 - 
stopStreamPMTpublic void stopStreamPMT(ProgramAssociationTable.ProgramEntry program) Stop stream pmt.- Parameters:
- program- the program
 
 - 
startStreamVideopublic void startStreamVideo(int PID, int codec)Start stream video.- Parameters:
- PID- the pid
 
 - 
startStreamAudiopublic void startStreamAudio(int PID, int codec)Start stream audio.- Parameters:
- PID- the pid
 
 - 
setPCRPidpublic void setPCRPid(int PID) Sets the pcr pid.- Parameters:
- PID- the pid
 
 - 
getPCRPidpublic int getPCRPid() Gets the pCR pid.- Returns:
- the pCR pid
 
 - 
startStreamSCTEpublic void startStreamSCTE(int PID) Start stream scte.- Parameters:
- PID- the pid
 
 - 
startUserMonitorPESpublic void startUserMonitorPES(int PID, IMPEG2UserMonitorPESNotify monitor)
 - 
startUserMonitorRawpublic void startUserMonitorRaw(int PID, IMPEG2UserMonitorRawNotify monitor)
 - 
startUserMonitorSectionpublic void startUserMonitorSection(int PID, IMPEG2UserMonitorSectionNotify monitor)
 - 
stopStreamSCTEpublic void stopStreamSCTE(int PID) Stop stream scte.- Parameters:
- PID- the pid
 
 - 
startStreampublic void startStream(int PID, IMPEG2PacketProcessor parser)Start stream.- Parameters:
- PID- the pid
- parser- the parser
 
 - 
stopStreampublic void stopStream(int PID) Stop stream.- Parameters:
- PID- the pid
 
 - 
processNewBufferpublic void processNewBuffer(byte[] bytes, int offset, int count) throws java.io.IOExceptionProcess new buffer.- Parameters:
- bytes- the bytes
- offset- the offset
- count- the count
- Throws:
- java.io.IOException- Signals that an I/O exception has occurred.
 
 - 
getShortClassNamepublic String getShortClassName() getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
 
- 
 
-