Package com.wowza.wms.transport.mpeg2
Class MPEG2MPTS
- Object
-
- com.wowza.wms.transport.mpeg2.MPEG2MPTS
-
public class MPEG2MPTS extends Object
The Class mpeg2MPTS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MPEG2MPTS.MPEG2MPTSBuffer
The Class MPEG2MPTSBuffer.
-
Field Summary
Fields Modifier and Type Field Description static int
INVALID
The Constant INVALID.long
packetCount
The packet count.static int
PID_DATATYPE_PES
static int
PID_DATATYPE_RAW
static int
PID_DATATYPE_SECTION
static int
PID_DATATYPE_UNKNOWN
static int
TS_PACKETLEN
The Constant TS_PACKETLEN.static byte
TS_SYNCBYTE
The Constant TS_SYNCBYTE.
-
Constructor Summary
Constructors Constructor Description MPEG2MPTS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getHasM2TSTimeCodes()
int
getPCRPid()
Gets the pCR pid.String
getShortClassName()
getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNamevoid
listen(IMPEG2StreamListener who)
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
startStreamPAT()
Start stream pat.void
startStreamPMT(ProgramAssociationTable.ProgramEntry program)
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
stopStreamPMT(ProgramAssociationTable.ProgramEntry program)
Stop stream pmt.void
stopStreamSCTE(int PID)
Stop stream scte.
-
-
-
Field Detail
-
PID_DATATYPE_UNKNOWN
public static final int PID_DATATYPE_UNKNOWN
- See Also:
- Constant Field Values
-
PID_DATATYPE_PES
public static final int PID_DATATYPE_PES
- See Also:
- Constant Field Values
-
PID_DATATYPE_SECTION
public static final int PID_DATATYPE_SECTION
- See Also:
- Constant Field Values
-
PID_DATATYPE_RAW
public static final int PID_DATATYPE_RAW
- See Also:
- Constant Field Values
-
INVALID
public static final int INVALID
The Constant INVALID.- See Also:
- Constant Field Values
-
TS_PACKETLEN
public static final int TS_PACKETLEN
The Constant TS_PACKETLEN.- See Also:
- Constant Field Values
-
TS_SYNCBYTE
public static final byte TS_SYNCBYTE
The Constant TS_SYNCBYTE.- See Also:
- Constant Field Values
-
packetCount
public long packetCount
The packet count.
-
-
Method Detail
-
getHasM2TSTimeCodes
public boolean getHasM2TSTimeCodes()
-
setHasM2TSTimeCodes
public void setHasM2TSTimeCodes(boolean hasM2TSTimeCodes)
-
listen
public void listen(IMPEG2StreamListener who)
Listen.- Parameters:
who
- the who
-
startStreamPAT
public void startStreamPAT()
Start stream pat.
-
startStreamPMT
public void startStreamPMT(ProgramAssociationTable.ProgramEntry program)
Start stream pmt.- Parameters:
program
- the program
-
stopStreamPMT
public void stopStreamPMT(ProgramAssociationTable.ProgramEntry program)
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
public void startUserMonitorPES(int PID, IMPEG2UserMonitorPESNotify monitor)
-
startUserMonitorRaw
public void startUserMonitorRaw(int PID, IMPEG2UserMonitorRawNotify monitor)
-
startUserMonitorSection
public void startUserMonitorSection(int PID, IMPEG2UserMonitorSectionNotify monitor)
-
stopStreamSCTE
public void stopStreamSCTE(int PID)
Stop stream scte.- Parameters:
PID
- the pid
-
startStream
public void startStream(int PID, IMPEG2PacketProcessor parser)
Start stream.- Parameters:
PID
- the pidparser
- the parser
-
stopStream
public void stopStream(int PID)
Stop stream.- Parameters:
PID
- the pid
-
processNewBuffer
public void processNewBuffer(byte[] bytes, int offset, int count) throws java.io.IOException
Process new buffer.- Parameters:
bytes
- the bytesoffset
- the offsetcount
- the count- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
getShortClassName
public String getShortClassName()
getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
-
-