Class VideoData

java.lang.Object
org.red5.server.net.rtmp.event.BaseEvent
org.red5.server.net.rtmp.event.VideoData
All Implemented Interfaces:
Externalizable, Serializable, IoConstants, IEvent, IStreamPacket, IRTMPEvent, Constants, IStreamData<VideoData>

public class VideoData extends BaseEvent implements IoConstants, IStreamData<VideoData>, IStreamPacket
Video data event
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • CODEC_HEVC

      public static final String CODEC_HEVC
      See Also:
    • CODEC_AVC

      public static final String CODEC_AVC
      See Also:
    • CODEC_AV1

      public static final String CODEC_AV1
      See Also:
    • CODEC_VP9

      public static final String CODEC_VP9
      See Also:
    • CODEC_VP8

      public static final String CODEC_VP8
      See Also:
    • MASK_EX_VIDEO_TAG_HEADER

      public static final int MASK_EX_VIDEO_TAG_HEADER
      See Also:
    • MASK_EX_VIDEO_FRAME_TYPE

      public static final int MASK_EX_VIDEO_FRAME_TYPE
      See Also:
    • MASK_EX_VIDEO_PACKET_TYPE

      public static final int MASK_EX_VIDEO_PACKET_TYPE
      See Also:
    • exVideoHeader

      private boolean exVideoHeader
      ExVideoHeader for enchanced RTMP
    • exVideoPacketType

      private VideoData.ExVideoPacketType exVideoPacketType
      ExVideoPacketType
    • receivedTime

      private long receivedTime
    • data

      protected org.apache.mina.core.buffer.IoBuffer data
      Video data
    • dataType

      private byte dataType
      Data type
    • frameType

      private VideoData.FrameType frameType
      Frame type, unknown by default
    • codecId

      private int codecId
      The codec id It can be the values from legacy implementation such as VideoCodec or VideoFourCC.HEVC_FOURCC
    • config

      protected boolean config
      True if this is configuration data and false otherwise
  • Constructor Details

    • VideoData

      public VideoData()
      Constructs a new VideoData.
    • VideoData

      public VideoData(org.apache.mina.core.buffer.IoBuffer data)
      Create video data event with given data buffer
      Parameters:
      data - Video data
    • VideoData

      public VideoData(org.apache.mina.core.buffer.IoBuffer data, boolean copy)
      Create video data event with given data buffer
      Parameters:
      data - Video data
      copy - true to use a copy of the data or false to use reference
  • Method Details