Class MPEG2MPTS

Object
com.wowza.wms.transport.mpeg2.MPEG2MPTS

public class MPEG2MPTS extends Object
The Class mpeg2MPTS.
  • 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 INVALID
      The Constant INVALID.
      See Also:
    • TS_PACKETLEN

      public static final int TS_PACKETLEN
      The Constant TS_PACKETLEN.
      See Also:
    • TS_SYNCBYTE

      public static final byte TS_SYNCBYTE
      The Constant TS_SYNCBYTE.
      See Also:
    • packetCount

      public long packetCount
      The packet count.
  • Constructor Details

    • MPEG2MPTS

      public MPEG2MPTS()
  • Method Details

    • 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 pid
      parser - 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 IOException
      Process new buffer.
      Parameters:
      bytes - the bytes
      offset - the offset
      count - the count
      Throws:
      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