\hypertarget{classagora_1_1rtc_1_1_i_media_control_packet_receiver}{}\doxysection{agora\+::rtc\+::I\+Media\+Control\+Packet\+Receiver Class Reference}
\label{classagora_1_1rtc_1_1_i_media_control_packet_receiver}\index{agora::rtc::IMediaControlPacketReceiver@{agora::rtc::IMediaControlPacketReceiver}}


{\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_control_packet_receiver_a21c1a1de6b8c68b321937d826b44c2c0}{on\+Media\+Control\+Packet\+Received}} (uid\+\_\+t uid, const uint8\+\_\+t $\ast$packet, size\+\_\+t length)=0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The \mbox{\hyperlink{classagora_1_1rtc_1_1_i_media_control_packet_receiver}{I\+Media\+Control\+Packet\+Receiver}} class.

You can register a receiver in audio or video tracks to trigger callbacks when R\+T\+C\+P/\+U\+DP packets are received. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_media_control_packet_receiver_a21c1a1de6b8c68b321937d826b44c2c0}\label{classagora_1_1rtc_1_1_i_media_control_packet_receiver_a21c1a1de6b8c68b321937d826b44c2c0}} 
\index{agora::rtc::IMediaControlPacketReceiver@{agora::rtc::IMediaControlPacketReceiver}!onMediaControlPacketReceived@{onMediaControlPacketReceived}}
\index{onMediaControlPacketReceived@{onMediaControlPacketReceived}!agora::rtc::IMediaControlPacketReceiver@{agora::rtc::IMediaControlPacketReceiver}}
\doxysubsubsection{\texorpdfstring{onMediaControlPacketReceived()}{onMediaControlPacketReceived()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Media\+Control\+Packet\+Receiver\+::on\+Media\+Control\+Packet\+Received (\begin{DoxyParamCaption}\item[{uid\+\_\+t}]{uid,  }\item[{const uint8\+\_\+t $\ast$}]{packet,  }\item[{size\+\_\+t}]{length }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Occurs when the track receives media control packet.


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