Package com.wowza.wms.transport.mpeg2
Class MPEG2MPTS
Object
com.wowza.wms.transport.mpeg2.MPEG2MPTS
The Class mpeg2MPTS.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Constant INVALID.longThe packet count.static final intstatic final intstatic final intstatic final intstatic final intThe Constant TS_PACKETLEN.static final byteThe Constant TS_SYNCBYTE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the pCR pid.getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNamevoidListen.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.voidStart stream pat.voidStart 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.voidStop stream pmt.voidstopStreamSCTE(int PID) Stop stream scte.
-
Field Details
-
PID_DATATYPE_UNKNOWN
public static final int PID_DATATYPE_UNKNOWN- See Also:
-
PID_DATATYPE_PES
public static final int PID_DATATYPE_PES- See Also:
-
PID_DATATYPE_SECTION
public static final int PID_DATATYPE_SECTION- See Also:
-
PID_DATATYPE_RAW
public static final int PID_DATATYPE_RAW- See Also:
-
INVALID
public static final int INVALIDThe Constant INVALID.- See Also:
-
TS_PACKETLEN
public static final int TS_PACKETLENThe Constant TS_PACKETLEN.- See Also:
-
TS_SYNCBYTE
public static final byte TS_SYNCBYTEThe Constant TS_SYNCBYTE.- See Also:
-
packetCount
public long packetCountThe packet count.
-
-
Constructor Details
-
MPEG2MPTS
public MPEG2MPTS()
-
-
Method Details
-
getHasM2TSTimeCodes
public boolean getHasM2TSTimeCodes() -
setHasM2TSTimeCodes
public void setHasM2TSTimeCodes(boolean hasM2TSTimeCodes) -
listen
Listen.- Parameters:
who- the who
-
startStreamPAT
public void startStreamPAT()Start stream pat. -
startStreamPMT
Start stream pmt.- Parameters:
program- the program
-
stopStreamPMT
Stop stream pmt.- Parameters:
program- the program
-
startStreamVideo
public void startStreamVideo(int PID, int codec) Start stream video.- Parameters:
PID- the pid
-
startStreamAudio
public void startStreamAudio(int PID, int codec) Start stream audio.- Parameters:
PID- the pid
-
setPCRPid
public void setPCRPid(int PID) Sets the pcr pid.- Parameters:
PID- the pid
-
getPCRPid
public int getPCRPid()Gets the pCR pid.- Returns:
- the pCR pid
-
startStreamSCTE
public void startStreamSCTE(int PID) Start stream scte.- Parameters:
PID- the pid
-
startUserMonitorPES
-
startUserMonitorRaw
-
startUserMonitorSection
-
stopStreamSCTE
public void stopStreamSCTE(int PID) Stop stream scte.- Parameters:
PID- the pid
-
startStream
Start stream.- Parameters:
PID- the pidparser- the parser
-
stopStream
public void stopStream(int PID) Stop stream.- Parameters:
PID- the pid
-
processNewBuffer
Process new buffer.- Parameters:
bytes- the bytesoffset- the offsetcount- the count- Throws:
IOException- Signals that an I/O exception has occurred.
-
getShortClassName
getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
-