public class MPEG2MPTS
extends Object
| Modifier and Type | Class | Description |
|---|---|---|
class |
MPEG2MPTS.MPEG2MPTSBuffer |
The Class MPEG2MPTSBuffer.
|
| 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 | Description |
|---|---|
MPEG2MPTS() |
| 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.className
|
void |
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.
|
public static final int INVALID
public long packetCount
public static final int PID_DATATYPE_PES
public static final int PID_DATATYPE_RAW
public static final int PID_DATATYPE_SECTION
public static final int PID_DATATYPE_UNKNOWN
public static final int TS_PACKETLEN
public static final byte TS_SYNCBYTE
public boolean getHasM2TSTimeCodes()
public int getPCRPid()
public String getShortClassName()
public void listen(IMPEG2StreamListener who)
who - the whopublic void processNewBuffer(byte[] bytes,
int offset,
int count)
throws java.io.IOException
bytes - the bytesoffset - the offsetcount - the countjava.io.IOException - Signals that an I/O exception has occurred.public void setHasM2TSTimeCodes(boolean hasM2TSTimeCodes)
public void setPCRPid(int PID)
PID - the pidpublic void startStream(int PID,
IMPEG2PacketProcessor parser)
PID - the pidparser - the parserpublic void startStreamAudio(int PID,
int codec)
PID - the pidpublic void startStreamPAT()
public void startStreamPMT(ProgramAssociationTable.ProgramEntry program)
program - the programpublic void startStreamSCTE(int PID)
PID - the pidpublic void startStreamVideo(int PID,
int codec)
PID - the pidpublic void startUserMonitorPES(int PID,
IMPEG2UserMonitorPESNotify monitor)
public void startUserMonitorRaw(int PID,
IMPEG2UserMonitorRawNotify monitor)
public void startUserMonitorSection(int PID,
IMPEG2UserMonitorSectionNotify monitor)
public void stopStream(int PID)
PID - the pidpublic void stopStreamPMT(ProgramAssociationTable.ProgramEntry program)
program - the programpublic void stopStreamSCTE(int PID)
PID - the pid