Class ScreenVideo

  • All Implemented Interfaces:
    IVideoStreamCodec, IoConstants

    public class ScreenVideo
    extends AbstractVideo
    Red5 video codec for the screen capture format.
    Author:
    The Red5 Project, Joachim Bauch (jojo@struktur.de), Paul Gregoire (mondain@gmail.com)
    • Constructor Detail

      • ScreenVideo

        public ScreenVideo()
        Constructs a new ScreenVideo.
    • 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