\hypertarget{classagora_1_1rtc_1_1_i_media_packet_receiver}{}\doxysection{agora\+::rtc\+::I\+Media\+Packet\+Receiver Class Reference}
\label{classagora_1_1rtc_1_1_i_media_packet_receiver}\index{agora::rtc::IMediaPacketReceiver@{agora::rtc::IMediaPacketReceiver}}


{\ttfamily \#include $<$N\+G\+I\+Agora\+Media\+Node.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual bool \mbox{\hyperlink{classagora_1_1rtc_1_1_i_media_packet_receiver_a3c85d8b9a58bd7da6d974b1972b34de3}{on\+Media\+Packet\+Received}} (const uint8\+\_\+t $\ast$packet, size\+\_\+t length, const \mbox{\hyperlink{structagora_1_1media_1_1base_1_1_packet_options}{agora\+::media\+::base\+::\+Packet\+Options}} \&options)=0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The \mbox{\hyperlink{classagora_1_1rtc_1_1_i_media_packet_receiver}{I\+Media\+Packet\+Receiver}} class. You can register a receiver in remote audio or video tracks to trigger callbacks when R\+T\+P/\+U\+DP packets are received. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_media_packet_receiver_a3c85d8b9a58bd7da6d974b1972b34de3}\label{classagora_1_1rtc_1_1_i_media_packet_receiver_a3c85d8b9a58bd7da6d974b1972b34de3}} 
\index{agora::rtc::IMediaPacketReceiver@{agora::rtc::IMediaPacketReceiver}!onMediaPacketReceived@{onMediaPacketReceived}}
\index{onMediaPacketReceived@{onMediaPacketReceived}!agora::rtc::IMediaPacketReceiver@{agora::rtc::IMediaPacketReceiver}}
\doxysubsubsection{\texorpdfstring{onMediaPacketReceived()}{onMediaPacketReceived()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Media\+Packet\+Receiver\+::on\+Media\+Packet\+Received (\begin{DoxyParamCaption}\item[{const uint8\+\_\+t $\ast$}]{packet,  }\item[{size\+\_\+t}]{length,  }\item[{const \mbox{\hyperlink{structagora_1_1media_1_1base_1_1_packet_options}{agora\+::media\+::base\+::\+Packet\+Options}} \&}]{options }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Occurs when the track receives a media packet.


\begin{DoxyParams}{Parameters}
{\em packet} & The pointer to the media packet. \\
\hline
{\em length} & The length of the packet. \\
\hline
{\em options} & The packet info. \\
\hline
\end{DoxyParams}
