Class RTPVP9

java.lang.Object
javaforce.voip.RTPVP9
All Implemented Interfaces:
RTPVideoCoder

public class RTPVP9 extends Object implements RTPVideoCoder
  • Constructor Details

    • RTPVP9

      public RTPVP9()
  • Method Details

    • setid

      public void setid(int id)
      Description copied from interface: RTPVideoCoder
      Sets RTP payload ID. This value is exchanged in SDP packets. For some video codecs this value is fixed and ignored.
      Specified by:
      setid in interface RTPVideoCoder
    • encode

      public void encode(byte[] data, int offset, int length, int x, int y, PacketReceiver pr)
      Encodes raw VP9 packet into multiple RTP packets.
      Specified by:
      encode in interface RTPVideoCoder
    • decode

      public void decode(byte[] rtp, int offset, int length, PacketReceiver pr)
      Returns last full packet.
      Specified by:
      decode in interface RTPVideoCoder