Class MPEG2MPTS


  • public class MPEG2MPTS
    extends Object
    The Class mpeg2MPTS.
    • Constructor Detail

      • MPEG2MPTS

        public MPEG2MPTS()
    • Method Detail

      • getHasM2TSTimeCodes

        public boolean getHasM2TSTimeCodes()
      • setHasM2TSTimeCodes

        public void setHasM2TSTimeCodes​(boolean hasM2TSTimeCodes)
      • startStreamPAT

        public void startStreamPAT()
        Start stream pat.
      • 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
      • 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 java.io.IOException
        Process new buffer.
        Parameters:
        bytes - the bytes
        offset - the offset
        count - 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