Class AVCVideo

  • All Implemented Interfaces:
    IVideoStreamCodec, IoConstants

    public class AVCVideo
    extends AbstractVideo
    Red5 video codec for the AVC (h264) video format. Stores DecoderConfigurationRecord and last keyframe.
    Author:
    Tiago Jacobs (tiago@imdt.com.br), Paul Gregoire (mondain@gmail.com)
    • Constructor Detail

      • AVCVideo

        public AVCVideo()
        Constructs a new AVCVideo.
    • Method Detail

      • canHandleData

        public boolean canHandleData​(org.apache.mina.core.buffer.IoBuffer data)
        Returns true if the codec knows how to handle the passed stream data.
        Specified by:
        canHandleData in interface IVideoStreamCodec
        Overrides:
        canHandleData in class AbstractVideo
        Parameters:
        data - some sample data to see if this codec can handle it
        Returns:
        can this code handle the data.
      • addData

        public boolean addData​(org.apache.mina.core.buffer.IoBuffer data)
        Update the state of the codec with the passed data.
        Specified by:
        addData in interface IVideoStreamCodec
        Overrides:
        addData in class AbstractVideo
        Parameters:
        data - data to tell the codec we're adding
        Returns:
        true for success. false for error
      • addData

        public boolean addData​(org.apache.mina.core.buffer.IoBuffer data,
                               int timestamp)
        Update the state of the codec with the passed data.
        Specified by:
        addData in interface IVideoStreamCodec
        Overrides:
        addData in class AbstractVideo
        Parameters:
        data - data to tell the codec we're adding
        timestamp - time associated with the data
        Returns:
        true for success. false for error
      • isBufferInterframes

        public boolean isBufferInterframes()
      • setBufferInterframes

        public void setBufferInterframes​(boolean bufferInterframes)