\hypertarget{classagora_1_1rtc_1_1_i_packet_observer}{}\doxysection{agora\+::rtc\+::I\+Packet\+Observer Class Reference}
\label{classagora_1_1rtc_1_1_i_packet_observer}\index{agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}}


{\ttfamily \#include $<$Agora\+Base.\+h$>$}

\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}
\begin{DoxyCompactList}\small\item\em Configurations for the {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}} instance. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual bool \mbox{\hyperlink{classagora_1_1rtc_1_1_i_packet_observer_ae023dfc10aca2f214edb9dc175237d9e}{on\+Send\+Audio\+Packet}} (\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&packet)=0
\begin{DoxyCompactList}\small\item\em Occurs when the local user sends an audio packet. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{classagora_1_1rtc_1_1_i_packet_observer_acd1892d19c93514b62c34593a3baf4e7}{on\+Send\+Video\+Packet}} (\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&packet)=0
\begin{DoxyCompactList}\small\item\em Occurs when the local user sends a video packet. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{classagora_1_1rtc_1_1_i_packet_observer_ab4e9874b56efc40966c0f8ff99a7450f}{on\+Receive\+Audio\+Packet}} (\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&packet)=0
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives an audio packet. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{classagora_1_1rtc_1_1_i_packet_observer_a48b7cc7db416607a15c69b6b77050311}{on\+Receive\+Video\+Packet}} (\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&packet)=0
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives a video packet. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The definition of the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_packet_observer}{I\+Packet\+Observer}} struct. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_packet_observer_ae023dfc10aca2f214edb9dc175237d9e}\label{classagora_1_1rtc_1_1_i_packet_observer_ae023dfc10aca2f214edb9dc175237d9e}} 
\index{agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}!onSendAudioPacket@{onSendAudioPacket}}
\index{onSendAudioPacket@{onSendAudioPacket}!agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}}
\doxysubsubsection{\texorpdfstring{onSendAudioPacket()}{onSendAudioPacket()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Packet\+Observer\+::on\+Send\+Audio\+Packet (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&}]{packet }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Occurs when the local user sends an audio packet. 


\begin{DoxyParams}{Parameters}
{\em packet} & The sent audio packet, see {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item {\ttfamily true}\+: The audio packet is sent successfully.
\item {\ttfamily false}\+: The audio packet is discarded. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_packet_observer_acd1892d19c93514b62c34593a3baf4e7}\label{classagora_1_1rtc_1_1_i_packet_observer_acd1892d19c93514b62c34593a3baf4e7}} 
\index{agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}!onSendVideoPacket@{onSendVideoPacket}}
\index{onSendVideoPacket@{onSendVideoPacket}!agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}}
\doxysubsubsection{\texorpdfstring{onSendVideoPacket()}{onSendVideoPacket()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Packet\+Observer\+::on\+Send\+Video\+Packet (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&}]{packet }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Occurs when the local user sends a video packet. 


\begin{DoxyParams}{Parameters}
{\em packet} & The sent video packet, see {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item {\ttfamily true}\+: The video packet is sent successfully.
\item {\ttfamily false}\+: The video packet is discarded. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_packet_observer_ab4e9874b56efc40966c0f8ff99a7450f}\label{classagora_1_1rtc_1_1_i_packet_observer_ab4e9874b56efc40966c0f8ff99a7450f}} 
\index{agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}!onReceiveAudioPacket@{onReceiveAudioPacket}}
\index{onReceiveAudioPacket@{onReceiveAudioPacket}!agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}}
\doxysubsubsection{\texorpdfstring{onReceiveAudioPacket()}{onReceiveAudioPacket()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Packet\+Observer\+::on\+Receive\+Audio\+Packet (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&}]{packet }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Occurs when the local user receives an audio packet. 


\begin{DoxyParams}{Parameters}
{\em packet} & The received audio packet, see {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item {\ttfamily true}\+: The audio packet is received successfully.
\item {\ttfamily false}\+: The audio packet is discarded. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_packet_observer_a48b7cc7db416607a15c69b6b77050311}\label{classagora_1_1rtc_1_1_i_packet_observer_a48b7cc7db416607a15c69b6b77050311}} 
\index{agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}!onReceiveVideoPacket@{onReceiveVideoPacket}}
\index{onReceiveVideoPacket@{onReceiveVideoPacket}!agora::rtc::IPacketObserver@{agora::rtc::IPacketObserver}}
\doxysubsubsection{\texorpdfstring{onReceiveVideoPacket()}{onReceiveVideoPacket()}}
{\footnotesize\ttfamily virtual bool agora\+::rtc\+::\+I\+Packet\+Observer\+::on\+Receive\+Video\+Packet (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}} \&}]{packet }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Occurs when the local user receives a video packet. 


\begin{DoxyParams}{Parameters}
{\em packet} & The received video packet, see {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_i_packet_observer_1_1_packet}{Packet}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item {\ttfamily true}\+: The video packet is received successfully.
\item {\ttfamily false}\+: The video packet is discarded. 
\end{DoxyItemize}
\end{DoxyReturn}
