| 1 | package cz.vutbr.feec.packets.rtp; |
| 2 | |
| 3 | /** |
| 4 | * This class provides constants associated with RTCP Packets -similar to those defined |
| 5 | * in rtp.h |
| 6 | */ |
| 7 | |
| 8 | public class PayloadConstants extends Object |
| 9 | { |
| 10 | /* |
| 11 | * RTP PACKET CONSTANTS |
| 12 | */ |
| 13 | /** Version =2. */ |
| 14 | public static final byte VERSION = 2; |
| 15 | |
| 16 | /** Padding =0. */ |
| 17 | public static final byte PADDING = 0; |
| 18 | |
| 19 | /** Marker =0. */ |
| 20 | public static final byte MARKER = 0; |
| 21 | |
| 22 | /** EXTENSION =0. */ |
| 23 | public static final byte EXTENSION = 0; |
| 24 | |
| 25 | /** payload types =0. */ |
| 26 | public static final byte RTP_PAYLOAD_PCMU = 0; |
| 27 | |
| 28 | /** The Constant RTP_PAYLOAD_1016. */ |
| 29 | public static final byte RTP_PAYLOAD_1016 = 1; |
| 30 | |
| 31 | /** The Constant RTP_PAYLOAD_G721. */ |
| 32 | public static final byte RTP_PAYLOAD_G721 = 2; |
| 33 | |
| 34 | /** The Constant RTP_PAYLOAD_GSM. */ |
| 35 | public static final byte RTP_PAYLOAD_GSM = 3; |
| 36 | |
| 37 | /** The Constant RTP_PAYLOAD_G723. */ |
| 38 | public static final byte RTP_PAYLOAD_G723 = 4; |
| 39 | |
| 40 | /** The Constant RTP_PAYLOAD_DVI4_8k. */ |
| 41 | public static final byte RTP_PAYLOAD_DVI4_8k = 5; |
| 42 | |
| 43 | /** The Constant RTP_PAYLOAD_DVI4_16k. */ |
| 44 | public static final byte RTP_PAYLOAD_DVI4_16k= 6; |
| 45 | |
| 46 | /** The Constant RTP_PAYLOAD_LPC. */ |
| 47 | public static final byte RTP_PAYLOAD_LPC = 7; |
| 48 | |
| 49 | /** The Constant RTP_PAYLOAD_PCMA. */ |
| 50 | public static final byte RTP_PAYLOAD_PCMA = 8; |
| 51 | |
| 52 | /** The Constant RTP_PAYLOAD_H263. */ |
| 53 | public static final byte RTP_PAYLOAD_H263 = 34; |
| 54 | |
| 55 | |
| 56 | /* |
| 57 | * RTCP TYPES |
| 58 | */ |
| 59 | /** RTCP Sender Report Packet (SR) = 200. */ |
| 60 | public static final int RTCP_SR = (int) 200; |
| 61 | |
| 62 | /** RTCP Receiver Report Packet (RR) = 201. */ |
| 63 | public static final int RTCP_RR = (int) 201; |
| 64 | |
| 65 | /** RTCP Source Description Packet (SDES) = 202. */ |
| 66 | public static final int RTCP_SDES = (int) 202; |
| 67 | |
| 68 | /** RTCP BYE Packet = 203. */ |
| 69 | public static final int RTCP_BYE = (int) 203; |
| 70 | |
| 71 | /** RTCP APP Packet = 204. */ |
| 72 | public static final int RTCP_APP = (int) 204; |
| 73 | |
| 74 | /** RTCP RSI Packet = 204. */ |
| 75 | public static final int RTCP_RSI = (int) 208; |
| 76 | |
| 77 | |
| 78 | /** The Constant RTP_DATA. */ |
| 79 | public static final int RTP_DATA = (int) 0; |
| 80 | |
| 81 | /* |
| 82 | * SDES TYPES |
| 83 | */ |
| 84 | |
| 85 | /** End SDES Item =0. */ |
| 86 | public static final byte RTCP_SDES_END = (byte) 0; |
| 87 | |
| 88 | /** Canonical end - point identifier SDES Item =1. */ |
| 89 | public static final byte RTCP_SDES_CNAME = (byte) 1; |
| 90 | |
| 91 | /** User Name SDES Item = 2. */ |
| 92 | public static final byte RTCP_SDES_NAME = (byte) 2; |
| 93 | |
| 94 | /** Electronic mail address SDES Item =3. */ |
| 95 | public static final byte RTCP_SDES_EMAIL = (byte) 3; |
| 96 | |
| 97 | /** Phone number SDES Item = 4. */ |
| 98 | public static final byte RTCP_SDES_PHONE = (byte) 4; |
| 99 | |
| 100 | /** Geographic user location SDES Item = 5. */ |
| 101 | public static final byte RTCP_SDES_LOC = (byte) 5; |
| 102 | |
| 103 | /** Application or tool name SDES Item = 6. */ |
| 104 | public static final byte RTCP_SDES_TOOL = (byte) 6; |
| 105 | |
| 106 | /** Notice or status SDES Item = 7. */ |
| 107 | public static final byte RTCP_SDES_NOTE = (byte) 7; |
| 108 | |
| 109 | /** Private extensions SDES Item = 8. */ |
| 110 | public static final byte RTCP_SDES_PRIV = (byte) 8; |
| 111 | |
| 112 | } |