RtpPacket implements Serializable { public int getSeqNumber() { return buffer.getShort(2) & 0xFFFF; } RtpPacket(int capacity, boolean allocateDirect);  RtpPacket(boolean allocateDirect); ByteBuffer getBuffer(); byte[] getRawData(); int getVersion(); int getContributingSource(); boolean hasPadding(); boolean hasExtensions(); boolean getMarker(); int getPayloadType(); int getSeqNumber(); long getTimestamp(); long getSyncSource(); long GetRTCPSyncSource(); long readUnsignedIntAsLong(int off); void getPayload(byte[] buff, int offset); void getPayload(byte[] buff); void wrap(byte[] data); void wrap(boolean mark, int payloadType, int seqNumber, long timestamp, long ssrc, byte[] data, int offset, int len); @Override String toString(); void shrink(int delta); int getHeaderLength(); int getPayloadLength(); int getExtensionLength(); boolean getExtensionBit(); int getCsrcCount(); int getPaddingSize(); int getLength(); int getOffset(); void grow(int delta); void append(byte[] data, int len); void readRegionToBuff(int off, int len, byte[] outBuff); static final int RTP_PACKET_MAX_SIZE; static final int FIXED_HEADER_SIZE; static final int EXT_HEADER_SIZE; static final int VERSION; }
@Test public void testGetSequenceNumber() { assertEquals(27244, rtpPacket.getSeqNumber()); }