125 lines
2.7 KiB
Java
125 lines
2.7 KiB
Java
/*
|
|
This file is part of Peers, a java SIP softphone.
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
Copyright 2010 Yohann Martineau
|
|
*/
|
|
|
|
package net.sourceforge.peers.rtp;
|
|
|
|
public class RtpPacket {
|
|
|
|
private int version;
|
|
private boolean padding;
|
|
private boolean extension;
|
|
private int csrcCount;
|
|
private boolean marker;
|
|
private int payloadType;
|
|
private int sequenceNumber;
|
|
private long timestamp;
|
|
private long ssrc;
|
|
private long[] csrcList;
|
|
private byte[] data;
|
|
|
|
public int getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(int version) {
|
|
this.version = version;
|
|
}
|
|
|
|
public boolean isPadding() {
|
|
return padding;
|
|
}
|
|
|
|
public void setPadding(boolean padding) {
|
|
this.padding = padding;
|
|
}
|
|
|
|
public boolean isExtension() {
|
|
return extension;
|
|
}
|
|
|
|
public void setExtension(boolean extension) {
|
|
this.extension = extension;
|
|
}
|
|
|
|
public int getCsrcCount() {
|
|
return csrcCount;
|
|
}
|
|
|
|
public void setCsrcCount(int csrcCount) {
|
|
this.csrcCount = csrcCount;
|
|
}
|
|
|
|
public boolean isMarker() {
|
|
return marker;
|
|
}
|
|
|
|
public void setMarker(boolean marker) {
|
|
this.marker = marker;
|
|
}
|
|
|
|
public int getPayloadType() {
|
|
return payloadType;
|
|
}
|
|
|
|
public void setPayloadType(int payloadType) {
|
|
this.payloadType = payloadType;
|
|
}
|
|
|
|
public int getSequenceNumber() {
|
|
return sequenceNumber;
|
|
}
|
|
|
|
public void setSequenceNumber(int sequenceNumber) {
|
|
this.sequenceNumber = sequenceNumber;
|
|
}
|
|
|
|
public long getTimestamp() {
|
|
return timestamp;
|
|
}
|
|
|
|
public void setTimestamp(long timestamp) {
|
|
this.timestamp = timestamp;
|
|
}
|
|
|
|
public long getSsrc() {
|
|
return ssrc;
|
|
}
|
|
|
|
public void setSsrc(long ssrc) {
|
|
this.ssrc = ssrc;
|
|
}
|
|
|
|
public long[] getCsrcList() {
|
|
return csrcList;
|
|
}
|
|
|
|
public void setCsrcList(long[] csrcList) {
|
|
this.csrcList = csrcList;
|
|
}
|
|
|
|
public byte[] getData() {
|
|
return data;
|
|
}
|
|
|
|
public void setData(byte[] data) {
|
|
this.data = data;
|
|
}
|
|
|
|
}
|