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 int
The Constant INVALID.long
The packet count.static final int
static final int
static final int
static final int
static final int
The Constant TS_PACKETLEN.static final byte
The Constant TS_SYNCBYTE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the pCR pid.getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNamevoid
Listen.void
processNewBuffer
(byte[] bytes, int offset, int count) Process new buffer.void
setHasM2TSTimeCodes
(boolean hasM2TSTimeCodes) void
setPCRPid
(int PID) Sets the pcr pid.void
startStream
(int PID, IMPEG2PacketProcessor parser) Start stream.void
startStreamAudio
(int PID, int codec) Start stream audio.void
Start stream pat.void
Start stream pmt.void
startStreamSCTE
(int PID) Start stream scte.void
startStreamVideo
(int PID, int codec) Start stream video.void
startUserMonitorPES
(int PID, IMPEG2UserMonitorPESNotify monitor) void
startUserMonitorRaw
(int PID, IMPEG2UserMonitorRawNotify monitor) void
startUserMonitorSection
(int PID, IMPEG2UserMonitorSectionNotify monitor) void
stopStream
(int PID) Stop stream.void
Stop stream pmt.void
stopStreamSCTE
(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
-