\doxysection{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket}{}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket}\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
Inheritance diagram for com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a1ea8b87a8cdb4bb23ec2e01636e6525b}{set\+Version}} (int version)
\begin{DoxyCompactList}\small\item\em Sets the field that identifies the version of RTP (2 bits). \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ae9116e705a44d629ab6d9b932592f580}{set\+Padding}} (boolean padding)
\begin{DoxyCompactList}\small\item\em Sets the field that indicates if the packet contains one or more additional padding bytes at the end which are not part of the payload (1 bit) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a63bc26b67f450d26e7e419ecf1bc1821}{set\+Extension}} (boolean extension)
\begin{DoxyCompactList}\small\item\em Sets the field that indicates if there is an extension following the header (1 bit) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_abbfe86c5af2d25f34ce5ad89bf3d65fc}{set\+CC}} (int cc)
\begin{DoxyCompactList}\small\item\em Sets the fiels that gives the number of CSRC identifiers that follow the fixed header (4 bits). \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ab1b0db049c0c41e8ed20fee4059aac94}{set\+Marker}} (boolean marker)
\begin{DoxyCompactList}\small\item\em Set the marker bit that indicates the frame boundaries (1 bit) The interpretation of the marker is defined by a profile. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a45b4935463e38282419081dc6c77172e}{set\+Payload\+Type}} (int payload\+Type)
\begin{DoxyCompactList}\small\item\em Set payload type (7 bits) Typically a number in the SDP dynamic profile range, the value does not matter as long as it is used consistently in the rest of the RTSP negotiation process (rtpmap). \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a678e1e8b2592908512d724b80ad854a7}{set\+Sequence\+Number}} (short sequence\+Number)
\begin{DoxyCompactList}\small\item\em Set the sequence number type (16 bits) Increments by 1 for each packet in the same stream. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a44e521d95eed224fe3a563fb0c164cbc}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a44e521d95eed224fe3a563fb0c164cbc} 
short {\bfseries get\+Sequence\+Number} ()
\begin{DoxyCompactList}\small\item\em Get the sequence number type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a9b9084e95fa852971c63e02399dc61ec}{set\+Time\+Stamp}} (int timestamp)
\begin{DoxyCompactList}\small\item\em Set the time stamp type (32 bits) Typically the number of samples between the first packet and the first sample of this one (could be approximated by \textquotesingle{}time since beginning of the stream\textquotesingle{} \texorpdfstring{$\ast$}{*} \textquotesingle{}sample rate\textquotesingle{}). \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ae96676107399c301ef8886277143034d}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ae96676107399c301ef8886277143034d} 
int {\bfseries get\+Time\+Stamp} ()
\begin{DoxyCompactList}\small\item\em Get the sequence number type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a837f0d4d21f2904e862d9e59380fee43}{set\+Ssrc}} (int ssrc)
\begin{DoxyCompactList}\small\item\em Set synchronization sources (32 bits) Not used in this type of application where there is only one media (audio), one source and no synchronisation. \end{DoxyCompactList}\item 
byte\mbox{[}$\,$\mbox{]} \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a43060a8f6841803eaf614b94e0699301}{get\+Data}} ()
\begin{DoxyCompactList}\small\item\em Gets the packet raw data. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_aa4e7eec57630d6c51f3413a4f09b6bbf}{get\+Length}} ()
\begin{DoxyCompactList}\small\item\em Gets the size of the entire packet (payload size + header size) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a112a1c671648c81b1d1e7ce7674ef8ed}{set\+Payload\+Size}} (int payload\+Size)
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a2bf38f3e1d1773c5c2dce32eb117c0f4}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a2bf38f3e1d1773c5c2dce32eb117c0f4} 
static final int {\bfseries PAYLOAD\+\_\+\+TYPE} = 97
\begin{DoxyCompactList}\small\item\em Random payload type, in the range of the dynamic payload type of SDP (RFC 2327, \href{http://www.ietf.org/rfc/rfc2327.txt}{\texttt{ http\+://www.\+ietf.\+org/rfc/rfc2327.\+txt}}) \end{DoxyCompactList}\item 
static final int \mbox{\hyperlink{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a3da5c029ccfef6f0ab5d5cab2ebeb46d}{HEADER\+\_\+\+SIZE}} = 12
\begin{DoxyCompactList}\small\item\em Size of RTP header. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Helps creating a RTP packet. The size of the payload needs to be known before creating the packet. Then, each field of the header needs to be set. Each field of the header has a default value that should be appropriate for most cases. The documentation of each field setter tells the default value for this field.

The packet is constructed according to the RFC 3550 (\href{http://www.ietf.org/rfc/rfc3550.txt}{\texttt{ http\+://www.\+ietf.\+org/rfc/rfc3550.\+txt}}) 

\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a43060a8f6841803eaf614b94e0699301}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a43060a8f6841803eaf614b94e0699301} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!getData@{getData}}
\index{getData@{getData}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{getData()}{getData()}}
{\footnotesize\ttfamily byte\mbox{[}$\,$\mbox{]} com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+get\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the packet raw data. 

Typically used to send the bytes to a socket after constructing it and setting the various header fields / payload. 

Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1Packet_a57eeb6e9b0730d1307755b814d62f129}{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+Packet}}.

\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_aa4e7eec57630d6c51f3413a4f09b6bbf}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_aa4e7eec57630d6c51f3413a4f09b6bbf} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!getLength@{getLength}}
\index{getLength@{getLength}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{getLength()}{getLength()}}
{\footnotesize\ttfamily int com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+get\+Length (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Gets the size of the entire packet (payload size + header size) 



Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1Packet_a4f09071f8a6b4317de358dd7f39c42d8}{com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+Packet}}.

\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_abbfe86c5af2d25f34ce5ad89bf3d65fc}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_abbfe86c5af2d25f34ce5ad89bf3d65fc} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setCC@{setCC}}
\index{setCC@{setCC}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setCC()}{setCC()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+CC (\begin{DoxyParamCaption}\item[{int}]{cc }\end{DoxyParamCaption})}



Sets the fiels that gives the number of CSRC identifiers that follow the fixed header (4 bits). 

Default value\+: {\bfseries{0x0}} \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a63bc26b67f450d26e7e419ecf1bc1821}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a63bc26b67f450d26e7e419ecf1bc1821} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setExtension@{setExtension}}
\index{setExtension@{setExtension}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setExtension()}{setExtension()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Extension (\begin{DoxyParamCaption}\item[{boolean}]{extension }\end{DoxyParamCaption})}



Sets the field that indicates if there is an extension following the header (1 bit) 

Default value\+: {\ttfamily false} ({\bfseries{0x0}}) \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ab1b0db049c0c41e8ed20fee4059aac94}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ab1b0db049c0c41e8ed20fee4059aac94} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setMarker@{setMarker}}
\index{setMarker@{setMarker}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setMarker()}{setMarker()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Marker (\begin{DoxyParamCaption}\item[{boolean}]{marker }\end{DoxyParamCaption})}



Set the marker bit that indicates the frame boundaries (1 bit) The interpretation of the marker is defined by a profile. 

For the supported profiles, {\ttfamily true} if packet contains the end of the audio element (e.\+g. end of audio\+Mux\+Element in mp4-\/latm), {\ttfamily false} otherwise. 

Default value\+: {\ttfamily false} ({\bfseries{0x0}}) \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ae9116e705a44d629ab6d9b932592f580}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_ae9116e705a44d629ab6d9b932592f580} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setPadding@{setPadding}}
\index{setPadding@{setPadding}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setPadding()}{setPadding()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Padding (\begin{DoxyParamCaption}\item[{boolean}]{padding }\end{DoxyParamCaption})}



Sets the field that indicates if the packet contains one or more additional padding bytes at the end which are not part of the payload (1 bit) 

Default value\+: {\ttfamily false} ({\bfseries{0x0}}) \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a112a1c671648c81b1d1e7ce7674ef8ed}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a112a1c671648c81b1d1e7ce7674ef8ed} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setPayloadSize@{setPayloadSize}}
\index{setPayloadSize@{setPayloadSize}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setPayloadSize()}{setPayloadSize()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Payload\+Size (\begin{DoxyParamCaption}\item[{int}]{payload\+Size }\end{DoxyParamCaption})}

Sets the payload size. If the current buffer is not large enough, it is reallocated and the header is copied to the new buffer.

No assumption can be made regarding the previous payload after a call to this method. It may still be present if no reallocation was necessary, and it may be lost if there was a reallocation (as only the header is copied). It is assumed that changing the size of the payload implicitly implies changing the payload itself. \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a45b4935463e38282419081dc6c77172e}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a45b4935463e38282419081dc6c77172e} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setPayloadType@{setPayloadType}}
\index{setPayloadType@{setPayloadType}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setPayloadType()}{setPayloadType()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Payload\+Type (\begin{DoxyParamCaption}\item[{int}]{payload\+Type }\end{DoxyParamCaption})}



Set payload type (7 bits) Typically a number in the SDP dynamic profile range, the value does not matter as long as it is used consistently in the rest of the RTSP negotiation process (rtpmap). 

Default value\+: PAYLOAD\+\_\+\+TYPE ({\bfseries{0x61 -\/ 97}}) \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a678e1e8b2592908512d724b80ad854a7}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a678e1e8b2592908512d724b80ad854a7} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setSequenceNumber@{setSequenceNumber}}
\index{setSequenceNumber@{setSequenceNumber}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setSequenceNumber()}{setSequenceNumber()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Sequence\+Number (\begin{DoxyParamCaption}\item[{short}]{sequence\+Number }\end{DoxyParamCaption})}



Set the sequence number type (16 bits) Increments by 1 for each packet in the same stream. 

Default value\+: {\bfseries{0x0}} \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a837f0d4d21f2904e862d9e59380fee43}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a837f0d4d21f2904e862d9e59380fee43} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setSsrc@{setSsrc}}
\index{setSsrc@{setSsrc}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setSsrc()}{setSsrc()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Ssrc (\begin{DoxyParamCaption}\item[{int}]{ssrc }\end{DoxyParamCaption})}



Set synchronization sources (32 bits) Not used in this type of application where there is only one media (audio), one source and no synchronisation. 

Default value\+:{\bfseries{ 0x0}} \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a9b9084e95fa852971c63e02399dc61ec}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a9b9084e95fa852971c63e02399dc61ec} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setTimeStamp@{setTimeStamp}}
\index{setTimeStamp@{setTimeStamp}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setTimeStamp()}{setTimeStamp()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Time\+Stamp (\begin{DoxyParamCaption}\item[{int}]{timestamp }\end{DoxyParamCaption})}



Set the time stamp type (32 bits) Typically the number of samples between the first packet and the first sample of this one (could be approximated by \textquotesingle{}time since beginning of the stream\textquotesingle{} \texorpdfstring{$\ast$}{*} \textquotesingle{}sample rate\textquotesingle{}). 

Default value\+: {\bfseries{0x0}} \Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a1ea8b87a8cdb4bb23ec2e01636e6525b}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a1ea8b87a8cdb4bb23ec2e01636e6525b} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!setVersion@{setVersion}}
\index{setVersion@{setVersion}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{setVersion()}{setVersion()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+set\+Version (\begin{DoxyParamCaption}\item[{int}]{version }\end{DoxyParamCaption})}



Sets the field that identifies the version of RTP (2 bits). 

Default value\+: {\bfseries{0x2}} 

\doxysubsection{Member Data Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a3da5c029ccfef6f0ab5d5cab2ebeb46d}\label{classcom_1_1tritondigital_1_1net_1_1streaming_1_1proxy_1_1dataprovider_1_1rtp_1_1RtpPacket_a3da5c029ccfef6f0ab5d5cab2ebeb46d} 
\index{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}!HEADER\_SIZE@{HEADER\_SIZE}}
\index{HEADER\_SIZE@{HEADER\_SIZE}!com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket@{com.tritondigital.net.streaming.proxy.dataprovider.rtp.RtpPacket}}
\doxysubsubsection{\texorpdfstring{HEADER\_SIZE}{HEADER\_SIZE}}
{\footnotesize\ttfamily final int com.\+tritondigital.\+net.\+streaming.\+proxy.\+dataprovider.\+rtp.\+Rtp\+Packet.\+HEADER\+\_\+\+SIZE = 12\hspace{0.3cm}{\ttfamily [static]}}



Size of RTP header. 

Not using any extension / CCRS =\texorpdfstring{$>$}{>} fixed size 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
streamingproxy/src/main/java/com/tritondigital/net/streaming/proxy/dataprovider/rtp/Rtp\+Packet.\+java\end{DoxyCompactItemize}
