\hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex}{}\doxysection{agora\+::rtc\+::I\+Rtc\+Engine\+Event\+Handler\+Ex Class Reference}
\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex}\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
Inheritance diagram for agora\+::rtc\+::I\+Rtc\+Engine\+Event\+Handler\+Ex\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2413d2ddfadfb6d1ba955c799de5a5bd}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2413d2ddfadfb6d1ba955c799de5a5bd}} 
virtual const char $\ast$ {\bfseries event\+Handler\+Type} () const
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a145d64ad79dce13fe88902be40a78a07}{on\+Join\+Channel\+Success}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6dc63e4283997511f55dd0c874698a36}{on\+Rejoin\+Channel\+Success}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a67becd6ce31e41d4a93ccb62aa312e9a}{on\+Audio\+Quality}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int quality, unsigned short delay, unsigned short lost) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9ea091259d04999d2031fce85cc3cd30}{on\+Audio\+Volume\+Indication}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_audio_volume_info}{Audio\+Volume\+Info}} $\ast$speakers, unsigned int speaker\+Number, int total\+Volume)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32a3836f6b21ad6e418d61680f41798e}{on\+Leave\+Channel}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3b2fb9909fee46d0d73306f76c5604ff}{on\+Rtc\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f99af1f71b93989865e4c1e018e5c74}{on\+Network\+Quality}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int tx\+Quality, int rx\+Quality)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a56ba6ced00e73701b9b4c5235843553f}{on\+Intra\+Request\+Received}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaedd115287ecc8e6c949477534f781c2}{on\+First\+Local\+Video\+Frame\+Published}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1691425a306427845e0f9d4d78618383}{on\+First\+Remote\+Video\+Decoded}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int width, int height, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab990785ccdb597a7d9fee7205e7eb7ef}{on\+Video\+Size\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source\+Type, uid\+\_\+t uid, int width, int height, int rotation)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a41fd3e79da13fe7b0ae0582466c39370}{on\+Remote\+Video\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+TE state, R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON reason, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a373d769e26986160c75b9dfe6f2056db}{on\+First\+Remote\+Video\+Frame}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int width, int height, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6d10616602604f01667fd88e7fac5dc3}{on\+User\+Joined}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a01b4ecb53205b4ddffa7be5fa41f6622}{on\+User\+Offline}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, U\+S\+E\+R\+\_\+\+O\+F\+F\+L\+I\+N\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8403bcae82d7beaf4d0e7360e5e372f9}{on\+User\+Mute\+Audio}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, bool muted) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8c2800c9dbfb58f79ecea39a5b46e204}{on\+User\+Mute\+Video}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, bool muted)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a522061879f67fd95f7d76f76e5db0db3}{on\+User\+Enable\+Video}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, bool enabled)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a66b49b1c133f8624676c2ad8e821665a}{on\+User\+Enable\+Local\+Video}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, bool enabled) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a51eec5d62df9ad6047e584fb062b42e9}{on\+User\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, uint32\+\_\+t state)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aba1dbdd300bee2297a2615f3f99d93f1}{on\+Local\+Audio\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_audio_stats}{Local\+Audio\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7ac6f8af5d599657871d1994283fc502}{on\+Remote\+Audio\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_audio_stats}{Remote\+Audio\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf9955562fcb01562f622bb98ed8d4f3}{on\+Local\+Video\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source\+Type, const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_video_stats}{Local\+Video\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acc9ebed0cda9334223e0b97e1c725cbe}{on\+Remote\+Video\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_video_stats}{Remote\+Video\+Stats}} \&stats)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a18ceacbdf55796605257b346b2c09993}{on\+Connection\+Lost}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9edf8a9b801b7392f860a6c8e06a07ee}{on\+Connection\+Interrupted}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab8927690bb67e1087358b046e1136a2d}{on\+Connection\+Banned}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3eadb0f18ce9766170d52b5a0837ddb1}{on\+Stream\+Message}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int stream\+Id, const char $\ast$data, size\+\_\+t length, uint64\+\_\+t sent\+Ts)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3e188c40670826e46b17779a5a257bb8}{on\+Stream\+Message\+Error}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, int stream\+Id, int code, int missed, int cached)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad70528050839bc3ff643959165967a2d}{on\+Rdt\+Message}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t user\+Id, Rdt\+Stream\+Type type, const char $\ast$data, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives data via Reliable Data Transmission (R\+DT) from a remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_abf13c3435d170f54604d4c8d9d275fef}{on\+Rdt\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t user\+Id, Rdt\+State state)
\begin{DoxyCompactList}\small\item\em Occurs when the R\+DT tunnel state changed. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_accbf4806c31c69a2955fefb1ef825848}{on\+Media\+Control\+Message}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t user\+Id, const char $\ast$data, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives media control message sent by a remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a659d7f992663037c8e5772b206860920}{on\+Request\+Token}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af2c53d5c66f1dc93a03a631baf8fa1c1}{on\+License\+Validation\+Failure}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, L\+I\+C\+E\+N\+S\+E\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a39dc38e38a24b50f080509f864feae35}{on\+Token\+Privilege\+Will\+Expire}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const char $\ast$token)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_addded007537808e247e67858f5729e68}{on\+First\+Local\+Audio\+Frame\+Published}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a20856ca641afb1bffb4c7c3ec2c533ac}{on\+First\+Remote\+Audio\+Frame}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t user\+Id, int elapsed) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a45a7a2a31b5942a9432745f7da267c92}{on\+First\+Remote\+Audio\+Decoded}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid, int elapsed) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5c4401ffdd0c60c08271362a20b44f0f}{on\+Local\+Audio\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE state, L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7661e851c34e175031c2a970e91df681}{on\+Remote\+Audio\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+TE state, R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON reason, int elapsed)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8de7eccc24871aff107e8410b703eb80}{on\+Active\+Speaker}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b6dab85d14c7a15174953b28bdeb85d}{on\+Client\+Role\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE old\+Role, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE new\+Role, const \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}} \&new\+Role\+Options)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1a807260257828f925f47b01f5046f73}{on\+Client\+Role\+Change\+Failed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+C\+H\+A\+N\+G\+E\+\_\+\+F\+A\+I\+L\+E\+D\+\_\+\+R\+E\+A\+S\+ON reason, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE current\+Role)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6bf3c2c89cf1b5e5f4cc082d9c09a68c}{on\+Remote\+Audio\+Transport\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, unsigned short delay, unsigned short lost, unsigned short rx\+K\+Bit\+Rate) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab6d8edb58bfb322cf7e3da01c496202b}{on\+Remote\+Video\+Transport\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, unsigned short delay, unsigned short lost, unsigned short rx\+K\+Bit\+Rate) \+\_\+\+\_\+deprecated
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2b6c217cebd1a291418ceb8828452c0b}{on\+Connection\+State\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+T\+Y\+PE state, C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+C\+H\+A\+N\+G\+E\+D\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b4b1689cabbc778c03ff1e0b9c55e52}{on\+Network\+Type\+Changed}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, N\+E\+T\+W\+O\+R\+K\+\_\+\+T\+Y\+PE type)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf493382687e305895738847b30fdf0d}{on\+Encryption\+Error}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, E\+N\+C\+R\+Y\+P\+T\+I\+O\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE error\+Type)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac44a942487b3045fd98a6f79edc5320b}{on\+Upload\+Log\+Result}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const char $\ast$request\+Id, bool success, U\+P\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+S\+ON reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8511a2e4c476ad522faa0ec70a37128c}{on\+User\+Account\+Updated}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t remote\+Uid, const char $\ast$remote\+User\+Account)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3943328c22d66beecb6519dc256c77ad}{on\+Snapshot\+Taken}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid, const char $\ast$file\+Path, int width, int height, int err\+Code)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2214022295501289003fbd16944cc1c0}{on\+Video\+Rendering\+Tracing\+Result}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid, M\+E\+D\+I\+A\+\_\+\+T\+R\+A\+C\+E\+\_\+\+E\+V\+E\+NT current\+Event, \mbox{\hyperlink{structagora_1_1rtc_1_1_video_rendering_tracing_info}{Video\+Rendering\+Tracing\+Info}} tracing\+Info)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af7b9afcdb9ab1137adab299da279b7a4}{on\+Set\+Rtm\+Flag\+Result}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, int code)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9dafe205d7e30204ece823f5238dc2ed}{on\+Transcoded\+Stream\+Layout\+Info}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid, int width, int height, int layout\+Count, const \mbox{\hyperlink{structagora_1_1_video_layout}{Video\+Layout}} $\ast$layoutlist)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8e9e946f237974d2dfeb6ae44f0a3fea}{on\+Audio\+Metadata\+Received}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, uid\+\_\+t uid, const char $\ast$metadata, size\+\_\+t length)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7925bb4cbb349fa88386fd4dab82b9bb}{on\+Multipath\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_multipath_stats}{Multipath\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Callback for multipath transmission statistics. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5b31ba432b5be20c1f63ecd5052a75b4}{on\+Renew\+Token\+Result}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&connection, const char $\ast$token, R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+C\+O\+DE code)
\item 
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9c9dd9062eb94ff1659f4e62d801281b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9c9dd9062eb94ff1659f4e62d801281b}} 
virtual const char $\ast$ {\bfseries event\+Handler\+Type} () const
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aafceb1f91ae9bd82317bf25981e6851b}{on\+Join\+Channel\+Success}} (const char $\ast$channel, uid\+\_\+t uid, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when a user joins a channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a89b17edd14a8bbf0bb67d0478a92fbc5}{on\+Rejoin\+Channel\+Success}} (const char $\ast$channel, uid\+\_\+t uid, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when a user rejoins the channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab612312f6b4f72e1a036ef7683b8d324}{on\+Audio\+Quality}} (uid\+\_\+t uid, int quality, unsigned short delay, unsigned short lost) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Reports the statistics of the audio stream sent by each remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aab1184a2b276f509870c055a9ff8fac4}{on\+Audio\+Volume\+Indication}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_audio_volume_info}{Audio\+Volume\+Info}} $\ast$speakers, unsigned int speaker\+Number, int total\+Volume)
\begin{DoxyCompactList}\small\item\em Reports the volume information of users. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a98f832d175dfc044b31f0ec5874460fb}{on\+Leave\+Channel}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Occurs when a user leaves a channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ada38743982296a75879018c5773f08a1}{on\+Rtc\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Reports the statistics about the current call. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a80003ae8cce02039f3aa0e8ffad7deed}{on\+Network\+Quality}} (uid\+\_\+t uid, int tx\+Quality, int rx\+Quality)
\begin{DoxyCompactList}\small\item\em Reports the last mile network quality of each user in the channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2747779b0e8f7eb644069d134affd433}{on\+Intra\+Request\+Received}} ()
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a734c39289a40a97bc3dcd7df9413034a}{on\+First\+Local\+Video\+Frame\+Published}} (V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when the first video frame is published. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad8083c52d15135762a31c48192ad64f2}{on\+First\+Remote\+Video\+Decoded}} (uid\+\_\+t uid, int width, int height, int elapsed) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when the first remote video frame is received and decoded. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3ef9bc5dd7c16c92ed1707cca4594bfb}{on\+Video\+Size\+Changed}} (V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source\+Type, uid\+\_\+t uid, int width, int height, int rotation)
\begin{DoxyCompactList}\small\item\em Occurs when the video size or rotation of a specified user changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a48101bcc663c35b2b86562a20ea2eb96}{on\+Local\+Video\+State\+Changed}} (V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source, L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE state, L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON reason)
\begin{DoxyCompactList}\small\item\em Occurs when the local video stream state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae69799238c6a6cd9f017274dd630b74e}{on\+Remote\+Video\+State\+Changed}} (uid\+\_\+t uid, R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+TE state, R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON reason, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when the remote video stream state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1caf7870fa39a8b938d8d485c3ee7dce}{on\+First\+Remote\+Video\+Frame}} (uid\+\_\+t uid, int width, int height, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when the renderer receives the first frame of the remote video. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a985a675469baf9d54feb8781732e0ca8}{on\+User\+Joined}} (uid\+\_\+t uid, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) joins the channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9602593c05a16eafa7c094aa330c0719}{on\+User\+Offline}} (uid\+\_\+t uid, U\+S\+E\+R\+\_\+\+O\+F\+F\+L\+I\+N\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE reason)
\begin{DoxyCompactList}\small\item\em Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) leaves the channel. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a00433467903bd28b77631179a89a5bc6}{on\+User\+Mute\+Audio}} (uid\+\_\+t uid, bool muted)
\begin{DoxyCompactList}\small\item\em Occurs when a remote user (in the communication profile) or a host (in the live streaming profile) stops/resumes sending the audio stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8279591a761a5c2c1c4c1c4e677cbe0e}{on\+User\+Mute\+Video}} (uid\+\_\+t uid, bool muted)
\begin{DoxyCompactList}\small\item\em Occurs when a remote user stops or resumes publishing the video stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a91bef59a3659b6e6bcbe43eb203d0732}{on\+User\+Enable\+Video}} (uid\+\_\+t uid, bool enabled)
\begin{DoxyCompactList}\small\item\em Occurs when a remote user enables or disables the video module. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a199de5107bfc84c056998e2e45bba772}{on\+User\+Enable\+Local\+Video}} (uid\+\_\+t uid, bool enabled) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when a specific remote user enables/disables the local video capturing function. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2744650deb07a19c91f342363d606451}{on\+User\+State\+Changed}} (uid\+\_\+t uid, R\+E\+M\+O\+T\+E\+\_\+\+U\+S\+E\+R\+\_\+\+S\+T\+A\+TE state)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0cb47df6a8ef7acee229eb307d6f32c3}{on\+Local\+Audio\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_audio_stats}{Local\+Audio\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Reports the statistics of the local audio stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af8a59626a9265264fb4638e048091d3a}{on\+Remote\+Audio\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_audio_stats}{Remote\+Audio\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Reports the transport-\/layer statistics of each remote audio stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3476915aca1141cb7821dba9da41af2b}{on\+Local\+Video\+Stats}} (V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source, const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_video_stats}{Local\+Video\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Reports the statistics of the local video stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7163ffb650852be270ba0215b596d968}{on\+Remote\+Video\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_video_stats}{Remote\+Video\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Reports the statistics of the video stream sent by each remote users. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab5c110382a2ef7eb92cd069c22884727}{on\+Connection\+Lost}} ()
\begin{DoxyCompactList}\small\item\em Occurs when the S\+DK cannot reconnect to Agora\textquotesingle{}s edge server 10 seconds after its connection to the server is interrupted. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac5d532fe92a0d6c424e87e694225b6e9}{on\+Connection\+Interrupted}} () \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when the connection between the S\+DK and the server is interrupted. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a96abb5e2fef0afc0a80e87388ebdaa5e}{on\+Connection\+Banned}} () \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when the connection is banned by the Agora server. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0add560882999732aec21098c29280e0}{on\+Stream\+Message}} (uid\+\_\+t uid, int stream\+Id, const char $\ast$data, size\+\_\+t length, uint64\+\_\+t sent\+Ts)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives the data stream from the remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3af56e33ca95ccc6b9dce4b2a51c2b33}{on\+Stream\+Message\+Error}} (uid\+\_\+t uid, int stream\+Id, int code, int missed, int cached)
\begin{DoxyCompactList}\small\item\em Occurs when the local user does not receive the data stream from the remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab9b8efc5d670fe14dd0cea7da23b57f2}{on\+Rdt\+Message}} (uid\+\_\+t user\+Id, Rdt\+Stream\+Type type, const char $\ast$data, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives data via Reliable Data Transmission (R\+DT) from a remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a74076ace2c84fb29dc4586d4db33b1b4}{on\+Rdt\+State\+Changed}} (uid\+\_\+t user\+Id, Rdt\+State state)
\begin{DoxyCompactList}\small\item\em Occurs when the R\+DT tunnel state changed. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a82a1082fc12fcc26beacb0bdc055ac91}{on\+Media\+Control\+Message}} (uid\+\_\+t user\+Id, const char $\ast$data, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives media control message sent by a remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa7b456b750f56ca8fdfee8611572310e}{on\+Request\+Token}} ()
\begin{DoxyCompactList}\small\item\em Occurs when the token expires. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac401db99e49d5f240f553087cb90571d}{on\+Token\+Privilege\+Will\+Expire}} (const char $\ast$token)
\begin{DoxyCompactList}\small\item\em Occurs when the token expires in 30 seconds. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a40b29ba97d3519619e22069718f27add}{on\+License\+Validation\+Failure}} (L\+I\+C\+E\+N\+S\+E\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE error)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a03058e62a0a4a41e80ecf0279975ab99}{on\+First\+Local\+Audio\+Frame\+Published}} (int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when the first audio frame is published. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a160165e2d77abe9b35d1a2e638e2ced7}{on\+First\+Remote\+Audio\+Frame}} (uid\+\_\+t uid, int elapsed) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when the S\+DK receives the first audio frame from a specific remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a599399089441b7daa560e9c410e8a7ba}{on\+First\+Remote\+Audio\+Decoded}} (uid\+\_\+t uid, int elapsed) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Occurs when the S\+DK decodes the first remote audio frame for playback. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32079919217571134d36b01252de60d3}{on\+Local\+Audio\+State\+Changed}} (L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE state, L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON reason)
\begin{DoxyCompactList}\small\item\em Occurs when the local audio stream state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa168380f86f1dc2df1c269a785c56612}{on\+Remote\+Audio\+State\+Changed}} (uid\+\_\+t uid, R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+TE state, R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON reason, int elapsed)
\begin{DoxyCompactList}\small\item\em Occurs when the remote audio state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae643c9dbf94360a23a8b3a56c93f90bc}{on\+Active\+Speaker}} (uid\+\_\+t uid)
\begin{DoxyCompactList}\small\item\em Occurs when the most active remote speaker is detected. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a62ebb50a33d02175cddb4c655465cf20}{on\+Client\+Role\+Changed}} (C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE old\+Role, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE new\+Role, const \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}} \&new\+Role\+Options)
\begin{DoxyCompactList}\small\item\em Occurs when the user role or the audience latency level changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7f7424742197df2e199981b7e0e50f4f}{on\+Client\+Role\+Change\+Failed}} (C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+C\+H\+A\+N\+G\+E\+\_\+\+F\+A\+I\+L\+E\+D\+\_\+\+R\+E\+A\+S\+ON reason, C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE current\+Role)
\begin{DoxyCompactList}\small\item\em Occurs when switching a user role fails. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2aee5d99c0de8fa2f5cd71f5aa5f7128}{on\+Remote\+Audio\+Transport\+Stats}} (uid\+\_\+t uid, unsigned short delay, unsigned short lost, unsigned short rx\+K\+Bit\+Rate) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Reports the transport-\/layer statistics of each remote audio stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aae6eb5cba66f6314ee806bc9be253ff6}{on\+Remote\+Video\+Transport\+Stats}} (uid\+\_\+t uid, unsigned short delay, unsigned short lost, unsigned short rx\+K\+Bit\+Rate) \+\_\+\+\_\+deprecated
\begin{DoxyCompactList}\small\item\em Reports the transport-\/layer statistics of each remote video stream. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af409b2e721d345a65a2c600cea2f5eb4}{on\+Connection\+State\+Changed}} (C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+T\+Y\+PE state, C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+C\+H\+A\+N\+G\+E\+D\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE reason)
\begin{DoxyCompactList}\small\item\em Occurs when the network connection state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af71617b59ba8564963dfdd642f4e36a4}{on\+Network\+Type\+Changed}} (N\+E\+T\+W\+O\+R\+K\+\_\+\+T\+Y\+PE type)
\begin{DoxyCompactList}\small\item\em Occurs when the local network type changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad64b65c8bbb78624316770b01f2ee9bd}{on\+Encryption\+Error}} (E\+N\+C\+R\+Y\+P\+T\+I\+O\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE error\+Type)
\begin{DoxyCompactList}\small\item\em Reports the built-\/in encryption errors. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f97ca5105b02f4381af3603d5a87ccf}{on\+Upload\+Log\+Result}} (const char $\ast$request\+Id, bool success, U\+P\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+S\+ON reason)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad086cc4d8e5555cc75a0ab264c16d5ff}{on\+User\+Info\+Updated}} (uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_user_info}{User\+Info}} \&info)
\begin{DoxyCompactList}\small\item\em Occurs when the S\+DK gets the user ID and user account of the remote user. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acbd8141eb8257ec5e1c24c2fd978c229}{on\+User\+Account\+Updated}} (uid\+\_\+t uid, const char $\ast$user\+Account)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae3f517bd166a9e34aa77f9fbf137a7b9}{on\+Audio\+Subscribe\+State\+Changed}} (const char $\ast$channel, uid\+\_\+t uid, S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE old\+State, S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE new\+State, int elapse\+Since\+Last\+State)
\begin{DoxyCompactList}\small\item\em Occurs when the audio subscribing state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aebedc2b484b4e6b9f5d9a28aea997d65}{on\+Video\+Subscribe\+State\+Changed}} (const char $\ast$channel, uid\+\_\+t uid, S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE old\+State, S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE new\+State, int elapse\+Since\+Last\+State)
\begin{DoxyCompactList}\small\item\em Occurs when the video subscribing state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af5188bdc817fa62aac51b3dc627dfb64}{on\+Audio\+Publish\+State\+Changed}} (const char $\ast$channel, S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE old\+State, S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE new\+State, int elapse\+Since\+Last\+State)
\begin{DoxyCompactList}\small\item\em Occurs when the audio publishing state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae7b1f0d07f6c601717e38b101eda9d6c}{on\+Video\+Publish\+State\+Changed}} (V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE source, const char $\ast$channel, S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE old\+State, S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE new\+State, int elapse\+Since\+Last\+State)
\begin{DoxyCompactList}\small\item\em Occurs when the video publishing state changes. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6b8144c5a1591e06d6d854f703e97648}{on\+Snapshot\+Taken}} (uid\+\_\+t uid, const char $\ast$file\+Path, int width, int height, int err\+Code)
\begin{DoxyCompactList}\small\item\em Reports the result of taking a video snapshot. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af157b707afd93a5b0ab39569e46a6cd4}{on\+Video\+Rendering\+Tracing\+Result}} (uid\+\_\+t uid, M\+E\+D\+I\+A\+\_\+\+T\+R\+A\+C\+E\+\_\+\+E\+V\+E\+NT current\+Event, \mbox{\hyperlink{structagora_1_1rtc_1_1_video_rendering_tracing_info}{Video\+Rendering\+Tracing\+Info}} tracing\+Info)
\begin{DoxyCompactList}\small\item\em Video frame rendering event callback. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aee8751fc4c7ec335cc94b9d6b3df071a}{on\+Set\+Rtm\+Flag\+Result}} (int code)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4de055f77b40ca2aeab0d9132cbffc2a}{on\+Transcoded\+Stream\+Layout\+Info}} (uid\+\_\+t uid, int width, int height, int layout\+Count, const \mbox{\hyperlink{structagora_1_1_video_layout}{Video\+Layout}} $\ast$layoutlist)
\begin{DoxyCompactList}\small\item\em Occurs when the local user receives a mixed video stream carrying layout information. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4a9e9a3c7d3a058191aeac328620aab9}{on\+Audio\+Metadata\+Received}} (uid\+\_\+t uid, const char $\ast$metadata, size\+\_\+t length)
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3393ed4d85a160b57abd4ca7bc13002f}{on\+Multipath\+Stats}} (const \mbox{\hyperlink{structagora_1_1rtc_1_1_multipath_stats}{Multipath\+Stats}} \&stats)
\begin{DoxyCompactList}\small\item\em Report the multipath transmission statistics. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab02a474e317eb85459d79e5cf2296038}{on\+Renew\+Token\+Result}} (const char $\ast$token, R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+C\+O\+DE code)
\begin{DoxyCompactList}\small\item\em Callback for {\ttfamily renew\+Token} call result. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a145d64ad79dce13fe88902be40a78a07}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a145d64ad79dce13fe88902be40a78a07}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onJoinChannelSuccess@{onJoinChannelSuccess}}
\index{onJoinChannelSuccess@{onJoinChannelSuccess}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onJoinChannelSuccess()}{onJoinChannelSuccess()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Join\+Channel\+Success (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a user joins a channel.

This callback notifies the application that a user joins a specified channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling join\+Channel until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6dc63e4283997511f55dd0c874698a36}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6dc63e4283997511f55dd0c874698a36}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRejoinChannelSuccess@{onRejoinChannelSuccess}}
\index{onRejoinChannelSuccess@{onRejoinChannelSuccess}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRejoinChannelSuccess()}{onRejoinChannelSuccess()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Rejoin\+Channel\+Success (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a user rejoins the channel.

When a user loses connection with the server because of network problems, the S\+DK automatically tries to reconnect and triggers this callback upon reconnection.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling the join\+Channel method until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a67becd6ce31e41d4a93ccb62aa312e9a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a67becd6ce31e41d4a93ccb62aa312e9a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioQuality@{onAudioQuality}}
\index{onAudioQuality@{onAudioQuality}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioQuality()}{onAudioQuality()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Audio\+Quality (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{quality,  }\item[{unsigned short}]{delay,  }\item[{unsigned short}]{lost }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the audio stream from each remote user/broadcaster.

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000055}{Deprecated}}]This callback is deprecated. Use on\+Remote\+Audio\+Stats instead.\end{DoxyRefDesc}


The S\+DK triggers this callback once every two seconds to report the audio quality of each remote user/host sending an audio stream. If a channel has multiple remote users/hosts sending audio streams, the S\+DK triggers this callback as many times.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID of the remote user sending the audio stream. \\
\hline
{\em quality} & The audio quality of the user\+: \#\+Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE \\
\hline
{\em delay} & The network delay (ms) from the sender to the receiver, including the delay caused by audio sampling pre-\/processing, network transmission, and network jitter buffering. \\
\hline
{\em lost} & The audio packet loss rate (\%) from the sender to the receiver. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9ea091259d04999d2031fce85cc3cd30}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9ea091259d04999d2031fce85cc3cd30}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioVolumeIndication@{onAudioVolumeIndication}}
\index{onAudioVolumeIndication@{onAudioVolumeIndication}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioVolumeIndication()}{onAudioVolumeIndication()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Audio\+Volume\+Indication (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_audio_volume_info}{Audio\+Volume\+Info}} $\ast$}]{speakers,  }\item[{unsigned int}]{speaker\+Number,  }\item[{int}]{total\+Volume }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the volume information of users.

By default, this callback is disabled. You can enable it by calling {\ttfamily enable\+Audio\+Volume\+Indication}. Once this callback is enabled and users send streams in the channel, the S\+DK triggers the {\ttfamily on\+Audio\+Volume\+Indication} callback at the time interval set in {\ttfamily enable\+Audio\+Volume\+Indication}. The S\+DK triggers two independent {\ttfamily on\+Audio\+Volume\+Indication} callbacks simultaneously, which separately report the volume information of the local user who sends a stream and the remote users (up to three) whose instantaneous volume is the highest.

\begin{DoxyNote}{Note}
After you enable this callback, calling mute\+Local\+Audio\+Stream affects the S\+DK\textquotesingle{}s behavior as follows\+:
\begin{DoxyItemize}
\item If the local user stops publishing the audio stream, the S\+DK stops triggering the local user\textquotesingle{}s callback.
\item 20 seconds after a remote user whose volume is one of the three highest stops publishing the audio stream, the callback excludes this user\textquotesingle{}s information; 20 seconds after all remote users stop publishing audio streams, the S\+DK stops triggering the callback for remote users.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em speakers} & The volume information of the users, see \mbox{\hyperlink{structagora_1_1rtc_1_1_audio_volume_info}{Audio\+Volume\+Info}}. An empty {\ttfamily speakers} array in the callback indicates that no remote user is in the channel or sending a stream at the moment. \\
\hline
{\em speaker\+Number} & The total number of speakers.
\begin{DoxyItemize}
\item In the local user\textquotesingle{}s callback, when the local user sends a stream, {\ttfamily speaker\+Number} is 1.
\item In the callback for remote users, the value range of speaker\+Number is \mbox{[}0,3\mbox{]}. If the number of remote users who send streams is greater than or equal to three, the value of {\ttfamily speaker\+Number} is 3. 
\end{DoxyItemize}\\
\hline
{\em total\+Volume} & The volume of the speaker. The value ranges between 0 (lowest volume) and 255 (highest volume).
\begin{DoxyItemize}
\item In the local user\textquotesingle{}s callback, {\ttfamily total\+Volume} is the volume of the local user who sends a stream.
\item In the remote users\textquotesingle{} callback, {\ttfamily total\+Volume} is the sum of all remote users (up to three) whose instantaneous volume is the highest. If the user calls {\ttfamily start\+Audio\+Mixing}, {\ttfamily total\+Volume} is the volume after audio mixing. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32a3836f6b21ad6e418d61680f41798e}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32a3836f6b21ad6e418d61680f41798e}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLeaveChannel@{onLeaveChannel}}
\index{onLeaveChannel@{onLeaveChannel}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLeaveChannel()}{onLeaveChannel()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Leave\+Channel (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a user leaves a channel.

This callback notifies the app that the user leaves the channel by calling {\ttfamily leave\+Channel}. From this callback, the app can get information such as the call duration and quality statistics.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em stats} & The statistics on the call\+: \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3b2fb9909fee46d0d73306f76c5604ff}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3b2fb9909fee46d0d73306f76c5604ff}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRtcStats@{onRtcStats}}
\index{onRtcStats@{onRtcStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRtcStats()}{onRtcStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Rtc\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the current call.

The S\+DK triggers this callback once every two seconds after the user joins the channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em stats} & The statistics of the current call\+: \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f99af1f71b93989865e4c1e018e5c74}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f99af1f71b93989865e4c1e018e5c74}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onNetworkQuality@{onNetworkQuality}}
\index{onNetworkQuality@{onNetworkQuality}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onNetworkQuality()}{onNetworkQuality()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Network\+Quality (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{tx\+Quality,  }\item[{int}]{rx\+Quality }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the last mile network quality of each user in the channel.

This callback reports the last mile network conditions of each user in the channel. Last mile refers to the connection between the local device and Agora\textquotesingle{}s edge server.

The S\+DK triggers this callback once every two seconds. If a channel includes multiple users, the S\+DK triggers this callback as many times.

\begin{DoxyNote}{Note}
{\ttfamily tx\+Quality} is U\+N\+K\+N\+O\+WN when the user is not sending a stream; {\ttfamily rx\+Quality} is U\+N\+K\+N\+O\+WN when the user is not receiving a stream.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID. The network quality of the user with this user ID is reported. \\
\hline
{\em tx\+Quality} & Uplink network quality rating of the user in terms of the transmission bit rate, packet loss rate, average R\+TT (Round-\/\+Trip Time) and jitter of the uplink network. This parameter is a quality rating helping you understand how well the current uplink network conditions can support the selected video encoder configuration. For example, a 1000 Kbps uplink network may be adequate for video frames with a resolution of 640 × 480 and a frame rate of 15 fps in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile, but may be inadequate for resolutions higher than 1280 × 720. See \#\+Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE. \\
\hline
{\em rx\+Quality} & Downlink network quality rating of the user in terms of packet loss rate, average R\+TT, and jitter of the downlink network. See \#\+Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a56ba6ced00e73701b9b4c5235843553f}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a56ba6ced00e73701b9b4c5235843553f}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onIntraRequestReceived@{onIntraRequestReceived}}
\index{onIntraRequestReceived@{onIntraRequestReceived}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onIntraRequestReceived()}{onIntraRequestReceived()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Intra\+Request\+Received (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when intra request from remote user is received.

This callback is triggered once remote user needs one Key frame.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaedd115287ecc8e6c949477534f781c2}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaedd115287ecc8e6c949477534f781c2}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstLocalVideoFramePublished@{onFirstLocalVideoFramePublished}}
\index{onFirstLocalVideoFramePublished@{onFirstLocalVideoFramePublished}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstLocalVideoFramePublished()}{onFirstLocalVideoFramePublished()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Local\+Video\+Frame\+Published (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the first local video frame is published. The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The local client enables the video module and calls {\ttfamily join\+Channel} successfully.
\item The local client calls {\ttfamily mute\+Local\+Video\+Stream(true)} and mute\+Local\+Video\+Stream(false) in sequence.
\item The local client calls {\ttfamily disable\+Video} and {\ttfamily enable\+Video} in sequence.
\item The local client calls {\ttfamily push\+Video\+Frame} to successfully push the video frame to the S\+DK.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling join\+Channel\`{} to the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1691425a306427845e0f9d4d78618383}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1691425a306427845e0f9d4d78618383}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteVideoDecoded@{onFirstRemoteVideoDecoded}}
\index{onFirstRemoteVideoDecoded@{onFirstRemoteVideoDecoded}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteVideoDecoded()}{onFirstRemoteVideoDecoded()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Remote\+Video\+Decoded (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the first remote video frame is received and decoded.

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The remote user joins the channel and sends the video stream.
\item The remote user stops sending the video stream and re-\/sends it after 15 seconds. Reasons for such an interruption include\+:
\begin{DoxyItemize}
\item The remote user leaves the channel.
\item The remote user drops offline.
\item The remote user calls {\ttfamily mute\+Local\+Video\+Stream} to stop sending the video stream.
\item The remote user calls {\ttfamily disable\+Video} to disable video.
\end{DoxyItemize}
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID of the remote user sending the video stream. \\
\hline
{\em width} & The width (pixels) of the video stream. \\
\hline
{\em height} & The height (pixels) of the video stream. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab990785ccdb597a7d9fee7205e7eb7ef}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab990785ccdb597a7d9fee7205e7eb7ef}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoSizeChanged@{onVideoSizeChanged}}
\index{onVideoSizeChanged@{onVideoSizeChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoSizeChanged()}{onVideoSizeChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Video\+Size\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}]{source\+Type,  }\item[{uid\+\_\+t}]{uid,  }\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{rotation }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the local or remote video size or rotation has changed.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em source\+Type} & The video source type\+: \#\+V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE. \\
\hline
{\em uid} & The user ID. 0 indicates the local user. \\
\hline
{\em width} & The new width (pixels) of the video. \\
\hline
{\em height} & The new height (pixels) of the video. \\
\hline
{\em rotation} & The rotation information of the video. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a41fd3e79da13fe7b0ae0582466c39370}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a41fd3e79da13fe7b0ae0582466c39370}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoStateChanged@{onRemoteVideoStateChanged}}
\index{onRemoteVideoStateChanged@{onRemoteVideoStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoStateChanged()}{onRemoteVideoStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Video\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+TE}]{state,  }\item[{R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON}]{reason,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the remote video state changes.

\begin{DoxyNote}{Note}
This callback does not work properly when the number of users (in the voice/video call channel) or hosts (in the live streaming channel) in the channel exceeds 17.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The ID of the user whose video state has changed. \\
\hline
{\em state} & The remote video state\+: \#\+R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+TE. \\
\hline
{\em reason} & The reason of the remote video state change\+: \#\+R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local client calling {\ttfamily join\+Channel} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a373d769e26986160c75b9dfe6f2056db}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a373d769e26986160c75b9dfe6f2056db}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteVideoFrame@{onFirstRemoteVideoFrame}}
\index{onFirstRemoteVideoFrame@{onFirstRemoteVideoFrame}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteVideoFrame()}{onFirstRemoteVideoFrame()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Remote\+Video\+Frame (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the renderer receives the first frame of the remote video.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID of the remote user sending the video stream. \\
\hline
{\em width} & The width (px) of the video frame. \\
\hline
{\em height} & The height (px) of the video stream. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6d10616602604f01667fd88e7fac5dc3}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6d10616602604f01667fd88e7fac5dc3}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserJoined@{onUserJoined}}
\index{onUserJoined@{onUserJoined}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserJoined()}{onUserJoined()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Joined (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user or broadcaster joins the channel.


\begin{DoxyItemize}
\item In the C\+O\+M\+M\+U\+N\+I\+C\+A\+T\+I\+ON channel profile, this callback indicates that a remote user joins the channel. The S\+DK also triggers this callback to report the existing users in the channel when a user joins the channel. In the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG channel profile, this callback indicates that a host joins the channel. The S\+DK also triggers this callback to report the existing hosts in the channel when a host joins the channel. Agora recommends limiting the number of hosts to 17.
\end{DoxyItemize}

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item A remote user/host joins the channel by calling the {\ttfamily join\+Channel} method.
\item A remote user switches the user role to the host after joining the channel.
\item A remote user/host rejoins the channel after a network interruption.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The ID of the remote user or broadcaster joining the channel. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel} or {\ttfamily set\+Client\+Role} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a01b4ecb53205b4ddffa7be5fa41f6622}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a01b4ecb53205b4ddffa7be5fa41f6622}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserOffline@{onUserOffline}}
\index{onUserOffline@{onUserOffline}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserOffline()}{onUserOffline()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Offline (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{U\+S\+E\+R\+\_\+\+O\+F\+F\+L\+I\+N\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE}]{reason }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user or broadcaster goes offline.

There are two reasons for a user to go offline\+:
\begin{DoxyItemize}
\item Leave the channel\+: When the user leaves the channel, the user sends a goodbye message. When this message is received, the S\+DK determines that the user leaves the channel.
\item Drop offline\+: When no data packet of the user is received for a certain period of time, the S\+DK assumes that the user drops offline. A poor network connection may lead to false detection, so we recommend using the R\+TM S\+DK for reliable offline detection.
\item The user switches the user role from a broadcaster to an audience.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The ID of the remote user or broadcaster who leaves the channel or drops offline. \\
\hline
{\em reason} & The reason why the remote user goes offline\+: \#\+U\+S\+E\+R\+\_\+\+O\+F\+F\+L\+I\+N\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8403bcae82d7beaf4d0e7360e5e372f9}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8403bcae82d7beaf4d0e7360e5e372f9}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserMuteAudio@{onUserMuteAudio}}
\index{onUserMuteAudio@{onUserMuteAudio}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserMuteAudio()}{onUserMuteAudio()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Mute\+Audio (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{bool}]{muted }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user\textquotesingle{}s audio stream playback pauses/resumes. The S\+DK triggers this callback when the remote user stops or resumes sending the audio stream by calling the {\ttfamily mute\+Local\+Audio\+Stream} method. \begin{DoxyNote}{Note}
This callback can be inaccurate when the number of users (in the {\ttfamily C\+O\+M\+M\+U\+N\+I\+C\+A\+T\+I\+ON} profile) or hosts (in the {\ttfamily L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG} profile) in the channel exceeds 17.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID. \\
\hline
{\em muted} & Whether the remote user\textquotesingle{}s audio stream is muted/unmuted\+:
\begin{DoxyItemize}
\item true\+: Muted.
\item false\+: Unmuted. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8c2800c9dbfb58f79ecea39a5b46e204}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8c2800c9dbfb58f79ecea39a5b46e204}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserMuteVideo@{onUserMuteVideo}}
\index{onUserMuteVideo@{onUserMuteVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserMuteVideo()}{onUserMuteVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Mute\+Video (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{bool}]{muted }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user pauses or resumes sending the video stream.

When a remote user calls {\ttfamily mute\+Local\+Video\+Stream} to stop or resume publishing the video stream, the S\+DK triggers this callback to report the state of the remote user\textquotesingle{}s publishing stream to the local user.

\begin{DoxyNote}{Note}
This callback can be inaccurate when the number of users or broadacasters in a channel exceeds 20.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the remote user. \\
\hline
{\em muted} & Whether the remote user stops publishing the video stream\+:
\begin{DoxyItemize}
\item true\+: The remote user has paused sending the video stream.
\item false\+: The remote user has resumed sending the video stream. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a522061879f67fd95f7d76f76e5db0db3}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a522061879f67fd95f7d76f76e5db0db3}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserEnableVideo@{onUserEnableVideo}}
\index{onUserEnableVideo@{onUserEnableVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserEnableVideo()}{onUserEnableVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Enable\+Video (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{bool}]{enabled }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user enables or disables the video module.

Once the video function is disabled, the users cannot see any video.

The S\+DK triggers this callback when a remote user enables or disables the video module by calling the {\ttfamily enable\+Video} or {\ttfamily disable\+Video} method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The ID of the remote user. \\
\hline
{\em enabled} & Whether the video of the remote user is enabled\+:
\begin{DoxyItemize}
\item true\+: The remote user has enabled video.
\item false\+: The remote user has disabled video. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a66b49b1c133f8624676c2ad8e821665a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a66b49b1c133f8624676c2ad8e821665a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserEnableLocalVideo@{onUserEnableLocalVideo}}
\index{onUserEnableLocalVideo@{onUserEnableLocalVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserEnableLocalVideo()}{onUserEnableLocalVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Enable\+Local\+Video (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{bool}]{enabled }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a remote user enables or disables local video capturing.

The S\+DK triggers this callback when the remote user resumes or stops capturing the video stream by calling the {\ttfamily enable\+Local\+Video} method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The ID of the remote user. \\
\hline
{\em enabled} & Whether the specified remote user enables/disables local video\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: The remote user has enabled local video capturing.
\item {\ttfamily false}\+: The remote user has disabled local video capturing. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a51eec5d62df9ad6047e584fb062b42e9}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a51eec5d62df9ad6047e584fb062b42e9}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserStateChanged@{onUserStateChanged}}
\index{onUserStateChanged@{onUserStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserStateChanged()}{onUserStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{uint32\+\_\+t}]{state }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the remote user state is updated.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The uid of the remote user. \\
\hline
{\em state} & The remote user state\+: \#\+R\+E\+M\+O\+T\+E\+\_\+\+U\+S\+E\+R\+\_\+\+S\+T\+A\+TE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aba1dbdd300bee2297a2615f3f99d93f1}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aba1dbdd300bee2297a2615f3f99d93f1}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalAudioStats@{onLocalAudioStats}}
\index{onLocalAudioStats@{onLocalAudioStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalAudioStats()}{onLocalAudioStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Local\+Audio\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_audio_stats}{Local\+Audio\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the local audio stream.

The S\+DK triggers this callback once every two seconds.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em stats} & The statistics of the local audio stream. See \mbox{\hyperlink{structagora_1_1rtc_1_1_local_audio_stats}{Local\+Audio\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7ac6f8af5d599657871d1994283fc502}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7ac6f8af5d599657871d1994283fc502}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioStats@{onRemoteAudioStats}}
\index{onRemoteAudioStats@{onRemoteAudioStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioStats()}{onRemoteAudioStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Audio\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_audio_stats}{Remote\+Audio\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the audio stream from each remote user/host.

The S\+DK triggers this callback once every two seconds for each remote user who is sending audio streams. If a channel includes multiple remote users, the S\+DK triggers this callback as many times. 
\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em stats} & Statistics of the received remote audio streams. See \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_audio_stats}{Remote\+Audio\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf9955562fcb01562f622bb98ed8d4f3}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf9955562fcb01562f622bb98ed8d4f3}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalVideoStats@{onLocalVideoStats}}
\index{onLocalVideoStats@{onLocalVideoStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalVideoStats()}{onLocalVideoStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Local\+Video\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}]{source\+Type,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_local_video_stats}{Local\+Video\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the local video stream.

The S\+DK triggers this callback once every two seconds for each user/host. If there are multiple users/hosts in the channel, the S\+DK triggers this callback as many times.

\begin{DoxyNote}{Note}
If you have called the {\ttfamily enable\+Dual\+Stream\+Mode} method, this callback reports the statistics of the high-\/video stream (high bitrate, and high-\/resolution video stream).
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em source\+Type} & The video source type\+: \#\+V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE. \\
\hline
{\em stats} & Statistics of the local video stream. See \mbox{\hyperlink{structagora_1_1rtc_1_1_local_video_stats}{Local\+Video\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acc9ebed0cda9334223e0b97e1c725cbe}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acc9ebed0cda9334223e0b97e1c725cbe}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoStats@{onRemoteVideoStats}}
\index{onRemoteVideoStats@{onRemoteVideoStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoStats()}{onRemoteVideoStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Video\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_video_stats}{Remote\+Video\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the statistics of the video stream from each remote user/host.

The S\+DK triggers this callback once every two seconds for each remote user. If a channel has multiple users/hosts sending video streams, the S\+DK triggers this callback as many times.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em stats} & Statistics of the remote video stream. See \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_video_stats}{Remote\+Video\+Stats}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a18ceacbdf55796605257b346b2c09993}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a18ceacbdf55796605257b346b2c09993}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionLost@{onConnectionLost}}
\index{onConnectionLost@{onConnectionLost}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionLost()}{onConnectionLost()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Connection\+Lost (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the S\+DK cannot reconnect to the server 10 seconds after its connection to the server is interrupted.

The S\+DK triggers this callback when it cannot connect to the server 10 seconds after calling {\ttfamily join\+Channel}, regardless of whether it is in the channel or not. If the S\+DK fails to rejoin the channel 20 minutes after being disconnected from Agora\textquotesingle{}s edge server, the S\+DK stops rejoining the channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9edf8a9b801b7392f860a6c8e06a07ee}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9edf8a9b801b7392f860a6c8e06a07ee}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionInterrupted@{onConnectionInterrupted}}
\index{onConnectionInterrupted@{onConnectionInterrupted}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionInterrupted()}{onConnectionInterrupted()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Connection\+Interrupted (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the connection between the S\+DK and the server is interrupted. \begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000056}{Deprecated}}]Use {\ttfamily on\+Connection\+State\+Changed} instead.\end{DoxyRefDesc}


The S\+DK triggers this callback when it loses connection with the serer for more than 4 seconds after the connection is established. After triggering this callback, the S\+DK tries to reconnect to the server. If the reconnection fails within a certain period (10 seconds by default), the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ab5c110382a2ef7eb92cd069c22884727}{on\+Connection\+Lost()}} callback is triggered. If the S\+DK fails to rejoin the channel 20 minutes after being disconnected from Agora\textquotesingle{}s edge server, the S\+DK stops rejoining the channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab8927690bb67e1087358b046e1136a2d}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab8927690bb67e1087358b046e1136a2d}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionBanned@{onConnectionBanned}}
\index{onConnectionBanned@{onConnectionBanned}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionBanned()}{onConnectionBanned()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Connection\+Banned (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when your connection is banned by the Agora Server.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3eadb0f18ce9766170d52b5a0837ddb1}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3eadb0f18ce9766170d52b5a0837ddb1}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onStreamMessage@{onStreamMessage}}
\index{onStreamMessage@{onStreamMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onStreamMessage()}{onStreamMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Stream\+Message (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{stream\+Id,  }\item[{const char $\ast$}]{data,  }\item[{size\+\_\+t}]{length,  }\item[{uint64\+\_\+t}]{sent\+Ts }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the local user receives the data stream from the remote user.

The S\+DK triggers this callback when the user receives the data stream that another user sends by calling the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_a7006214f7ca3c08d83cc0a4ebcb9febc}{send\+Stream\+Message}} method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the user who sends the data stream. \\
\hline
{\em stream\+Id} & The ID of the stream data. \\
\hline
{\em data} & The data stream. \\
\hline
{\em length} & The length (byte) of the data stream. \\
\hline
{\em sent\+Ts} & The time when the data stream sent. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3e188c40670826e46b17779a5a257bb8}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3e188c40670826e46b17779a5a257bb8}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onStreamMessageError@{onStreamMessageError}}
\index{onStreamMessageError@{onStreamMessageError}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onStreamMessageError()}{onStreamMessageError()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Stream\+Message\+Error (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{int}]{stream\+Id,  }\item[{int}]{code,  }\item[{int}]{missed,  }\item[{int}]{cached }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the local user does not receive the data stream from the remote user.

The S\+DK triggers this callback when the user fails to receive the data stream that another user sends by calling the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_a7006214f7ca3c08d83cc0a4ebcb9febc}{send\+Stream\+Message}} method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the user who sends the data stream. \\
\hline
{\em stream\+Id} & The ID of the stream data. \\
\hline
{\em code} & The error code. \\
\hline
{\em missed} & The number of lost messages. \\
\hline
{\em cached} & The number of incoming cached messages when the data stream is interrupted. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad70528050839bc3ff643959165967a2d}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad70528050839bc3ff643959165967a2d}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRdtMessage@{onRdtMessage}}
\index{onRdtMessage@{onRdtMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRdtMessage()}{onRdtMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Rdt\+Message (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{user\+Id,  }\item[{Rdt\+Stream\+Type}]{type,  }\item[{const char $\ast$}]{data,  }\item[{size\+\_\+t}]{length }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Occurs when the local user receives data via Reliable Data Transmission (R\+DT) from a remote user. 

@technical preview

The S\+DK triggers this callback when the user receives the data stream that another user sends by calling the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_abec7a493c27c4c0474dac59a23808879}{send\+Rdt\+Message}} method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em type} & The R\+DT stream type. See Rdt\+Stream\+Type. \\
\hline
{\em data} & The data received. \\
\hline
{\em length} & The length (byte) of the data. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_abf13c3435d170f54604d4c8d9d275fef}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_abf13c3435d170f54604d4c8d9d275fef}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRdtStateChanged@{onRdtStateChanged}}
\index{onRdtStateChanged@{onRdtStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRdtStateChanged()}{onRdtStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Rdt\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{user\+Id,  }\item[{Rdt\+State}]{state }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Occurs when the R\+DT tunnel state changed. 

@technical preview


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em state} & The R\+DT tunnel state. See Rdt\+State. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_accbf4806c31c69a2955fefb1ef825848}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_accbf4806c31c69a2955fefb1ef825848}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onMediaControlMessage@{onMediaControlMessage}}
\index{onMediaControlMessage@{onMediaControlMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onMediaControlMessage()}{onMediaControlMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Media\+Control\+Message (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{user\+Id,  }\item[{const char $\ast$}]{data,  }\item[{size\+\_\+t}]{length }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Occurs when the local user receives media control message sent by a remote user. 

@technical preview

The S\+DK triggers this callback when the user receives data sent by a remote user using the send\+Media\+Control\+Message method.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em data} & The data received. \\
\hline
{\em length} & The length (byte) of the data. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a659d7f992663037c8e5772b206860920}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a659d7f992663037c8e5772b206860920}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRequestToken@{onRequestToken}}
\index{onRequestToken@{onRequestToken}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRequestToken()}{onRequestToken()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Request\+Token (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the token expires.

When the token expires during a call, the S\+DK triggers this callback to remind the app to renew the token.

Upon receiving this callback, generate a new token at your app server and call {\ttfamily join\+Channel} to pass the new token to the S\+DK.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af2c53d5c66f1dc93a03a631baf8fa1c1}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af2c53d5c66f1dc93a03a631baf8fa1c1}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLicenseValidationFailure@{onLicenseValidationFailure}}
\index{onLicenseValidationFailure@{onLicenseValidationFailure}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLicenseValidationFailure()}{onLicenseValidationFailure()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+License\+Validation\+Failure (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{L\+I\+C\+E\+N\+S\+E\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE}]{reason }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when connection license verification fails.

You can know the reason accordding to error code \mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a39dc38e38a24b50f080509f864feae35}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a39dc38e38a24b50f080509f864feae35}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onTokenPrivilegeWillExpire@{onTokenPrivilegeWillExpire}}
\index{onTokenPrivilegeWillExpire@{onTokenPrivilegeWillExpire}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onTokenPrivilegeWillExpire()}{onTokenPrivilegeWillExpire()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Token\+Privilege\+Will\+Expire (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const char $\ast$}]{token }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the token will expire in 30 seconds.

When the token is about to expire in 30 seconds, the S\+DK triggers this callback to remind the app to renew the token.

Upon receiving this callback, generate a new token at your app server and call \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_a8f25b5ff97e2a070a69102e379295739}{renew\+Token}} to pass the new Token to the S\+DK.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em token} & The token that will expire in 30 seconds. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_addded007537808e247e67858f5729e68}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_addded007537808e247e67858f5729e68}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstLocalAudioFramePublished@{onFirstLocalAudioFramePublished}}
\index{onFirstLocalAudioFramePublished@{onFirstLocalAudioFramePublished}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstLocalAudioFramePublished()}{onFirstLocalAudioFramePublished()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Local\+Audio\+Frame\+Published (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the first local audio frame is published.

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The local client enables the audio module and calls {\ttfamily join\+Channel} successfully.
\item The local client calls {\ttfamily mute\+Local\+Audio\+Stream(true)} and {\ttfamily mute\+Local\+Audio\+Stream(false)} in sequence.
\item The local client calls {\ttfamily disable\+Audio} and {\ttfamily enable\+Audio} in sequence.
\item The local client calls {\ttfamily push\+Audio\+Frame} to successfully push the audio frame to the S\+DK.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel} to the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a20856ca641afb1bffb4c7c3ec2c533ac}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a20856ca641afb1bffb4c7c3ec2c533ac}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteAudioFrame@{onFirstRemoteAudioFrame}}
\index{onFirstRemoteAudioFrame@{onFirstRemoteAudioFrame}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteAudioFrame()}{onFirstRemoteAudioFrame()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Remote\+Audio\+Frame (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{user\+Id,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the S\+DK receives the first audio frame from a specific remote user. \begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000057}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+State\+Changed} instead.\end{DoxyRefDesc}



\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em user\+Id} & ID of the remote user. \\
\hline
{\em elapsed} & The time elapsed (ms) from the loca user calling {\ttfamily join\+Channel} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a45a7a2a31b5942a9432745f7da267c92}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a45a7a2a31b5942a9432745f7da267c92}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteAudioDecoded@{onFirstRemoteAudioDecoded}}
\index{onFirstRemoteAudioDecoded@{onFirstRemoteAudioDecoded}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteAudioDecoded()}{onFirstRemoteAudioDecoded()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+First\+Remote\+Audio\+Decoded (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the S\+DK decodes the first remote audio frame for playback.

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000058}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+State\+Changed} instead. The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The remote user joins the channel and sends the audio stream for the first time.
\item The remote user\textquotesingle{}s audio is offline and then goes online to re-\/send audio. It means the local user cannot receive audio in 15 seconds. Reasons for such an interruption include\+:
\begin{DoxyItemize}
\item The remote user leaves channel.
\item The remote user drops offline.
\item The remote user calls mute\+Local\+Audio\+Stream to stop sending the audio stream.
\item The remote user calls disable\+Audio to disable audio. 
\end{DoxyItemize}
\end{DoxyItemize}\end{DoxyRefDesc}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & User ID of the remote user sending the audio stream. \\
\hline
{\em elapsed} & The time elapsed (ms) from the loca user calling {\ttfamily join\+Channel} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5c4401ffdd0c60c08271362a20b44f0f}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5c4401ffdd0c60c08271362a20b44f0f}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalAudioStateChanged@{onLocalAudioStateChanged}}
\index{onLocalAudioStateChanged@{onLocalAudioStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalAudioStateChanged()}{onLocalAudioStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Local\+Audio\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE}]{state,  }\item[{L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON}]{reason }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the local audio state changes.

When the state of the local audio stream changes (including the state of the audio capture and encoding), the S\+DK triggers this callback to report the current state. This callback indicates the state of the local audio stream, and allows you to troubleshoot issues when audio exceptions occur.

\begin{DoxyNote}{Note}
When the state is {\ttfamily L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+F\+A\+I\+L\+E\+D(3)}, see the {\ttfamily error} parameter for details.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em state} & State of the local audio. See \#\+L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE. \\
\hline
{\em reason} & The reason information of the local audio. See \#\+L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7661e851c34e175031c2a970e91df681}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7661e851c34e175031c2a970e91df681}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioStateChanged@{onRemoteAudioStateChanged}}
\index{onRemoteAudioStateChanged@{onRemoteAudioStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioStateChanged()}{onRemoteAudioStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Audio\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+TE}]{state,  }\item[{R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON}]{reason,  }\item[{int}]{elapsed }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the remote audio state changes.

When the audio state of a remote user (in the voice/video call channel) or host (in the live streaming channel) changes, the S\+DK triggers this callback to report the current state of the remote audio stream.

\begin{DoxyNote}{Note}
This callback does not work properly when the number of users (in the voice/video call channel) or hosts (in the live streaming channel) in the channel exceeds 17.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the remote user whose audio state changes. \\
\hline
{\em state} & State of the remote audio. See \#\+R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+TE. \\
\hline
{\em reason} & The reason of the remote audio state change. See \#\+R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling the {\ttfamily join\+Channel} method until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8de7eccc24871aff107e8410b703eb80}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8de7eccc24871aff107e8410b703eb80}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onActiveSpeaker@{onActiveSpeaker}}
\index{onActiveSpeaker@{onActiveSpeaker}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onActiveSpeaker()}{onActiveSpeaker()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Active\+Speaker (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when an active speaker is detected.

After a successful call of {\ttfamily enable\+Audio\+Volume\+Indication}, the S\+DK continuously detects which remote user has the loudest volume. During the current period, the remote user, who is detected as the loudest for the most times, is the most active user.

When the number of users is no less than two and an active remote speaker exists, the S\+DK triggers this callback and reports the uid of the most active remote speaker.
\begin{DoxyItemize}
\item If the most active remote speaker is always the same user, the S\+DK triggers the {\ttfamily on\+Active\+Speaker} callback only once.
\item If the most active remote speaker changes to another user, the S\+DK triggers this callback again and reports the uid of the new active remote speaker.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & The ID of the active speaker. A {\ttfamily uid} of 0 means the local user. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b6dab85d14c7a15174953b28bdeb85d}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b6dab85d14c7a15174953b28bdeb85d}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onClientRoleChanged@{onClientRoleChanged}}
\index{onClientRoleChanged@{onClientRoleChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onClientRoleChanged()}{onClientRoleChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Client\+Role\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}]{old\+Role,  }\item[{C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}]{new\+Role,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}} \&}]{new\+Role\+Options }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the user role switches in the interactive live streaming.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} of the local user\+: \#\+Rtc\+Connection \\
\hline
{\em old\+Role} & The old role of the user\+: \#\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE \\
\hline
{\em new\+Role} & The new role of the user\+: \#\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE \\
\hline
{\em new\+Role\+Options} & The client role options of the new role\+: \#\+Client\+Role\+Options. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1a807260257828f925f47b01f5046f73}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1a807260257828f925f47b01f5046f73}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onClientRoleChangeFailed@{onClientRoleChangeFailed}}
\index{onClientRoleChangeFailed@{onClientRoleChangeFailed}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onClientRoleChangeFailed()}{onClientRoleChangeFailed()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Client\+Role\+Change\+Failed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+C\+H\+A\+N\+G\+E\+\_\+\+F\+A\+I\+L\+E\+D\+\_\+\+R\+E\+A\+S\+ON}]{reason,  }\item[{C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}]{current\+Role }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the user role in a Live-\/\+Broadcast channel fails to switch, for example, from a broadcaster to an audience or vice versa.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em reason} & The reason for failing to change the client role\+: \#\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+C\+H\+A\+N\+G\+E\+\_\+\+F\+A\+I\+L\+E\+D\+\_\+\+R\+E\+A\+S\+ON. \\
\hline
{\em current\+Role} & The current role of the user\+: \#\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6bf3c2c89cf1b5e5f4cc082d9c09a68c}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6bf3c2c89cf1b5e5f4cc082d9c09a68c}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioTransportStats@{onRemoteAudioTransportStats}}
\index{onRemoteAudioTransportStats@{onRemoteAudioTransportStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioTransportStats()}{onRemoteAudioTransportStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Audio\+Transport\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{unsigned short}]{delay,  }\item[{unsigned short}]{lost,  }\item[{unsigned short}]{rx\+K\+Bit\+Rate }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the transport-\/layer statistics of each remote audio stream. \begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000059}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+Stats} instead.\end{DoxyRefDesc}


This callback reports the transport-\/layer statistics, such as the packet loss rate and network time delay, once every two seconds after the local user receives an audio packet from a remote user. During a call, when the user receives the audio packet sent by the remote user/host, the callback is triggered every 2 seconds.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the remote user whose audio data packet is received. \\
\hline
{\em delay} & The network time delay (ms) from the sender to the receiver. \\
\hline
{\em lost} & The Packet loss rate (\%) of the audio packet sent from the remote user. \\
\hline
{\em rx\+K\+Bit\+Rate} & Received bitrate (Kbps) of the audio packet sent from the remote user. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab6d8edb58bfb322cf7e3da01c496202b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab6d8edb58bfb322cf7e3da01c496202b}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoTransportStats@{onRemoteVideoTransportStats}}
\index{onRemoteVideoTransportStats@{onRemoteVideoTransportStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoTransportStats()}{onRemoteVideoTransportStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Remote\+Video\+Transport\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{unsigned short}]{delay,  }\item[{unsigned short}]{lost,  }\item[{unsigned short}]{rx\+K\+Bit\+Rate }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the transport-\/layer statistics of each remote video stream. \begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000060}{Deprecated}}]Use {\ttfamily on\+Remote\+Video\+Stats} instead.\end{DoxyRefDesc}


This callback reports the transport-\/layer statistics, such as the packet loss rate and network time delay, once every two seconds after the local user receives a video packet from a remote user.

During a call, when the user receives the video packet sent by the remote user/host, the callback is triggered every 2 seconds.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & ID of the remote user whose video packet is received. \\
\hline
{\em delay} & The network time delay (ms) from the remote user sending the video packet to the local user. \\
\hline
{\em lost} & The packet loss rate (\%) of the video packet sent from the remote user. \\
\hline
{\em rx\+K\+Bit\+Rate} & The bitrate (Kbps) of the video packet sent from the remote user. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2b6c217cebd1a291418ceb8828452c0b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2b6c217cebd1a291418ceb8828452c0b}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionStateChanged@{onConnectionStateChanged}}
\index{onConnectionStateChanged@{onConnectionStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionStateChanged()}{onConnectionStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Connection\+State\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+T\+Y\+PE}]{state,  }\item[{C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+C\+H\+A\+N\+G\+E\+D\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE}]{reason }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the network connection state changes.

When the network connection state changes, the S\+DK triggers this callback and reports the current connection state and the reason for the change.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em state} & The current connection state. See \#\+C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+T\+Y\+PE. \\
\hline
{\em reason} & The reason for a connection state change. See \#\+C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+C\+H\+A\+N\+G\+E\+D\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b4b1689cabbc778c03ff1e0b9c55e52}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1b4b1689cabbc778c03ff1e0b9c55e52}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onNetworkTypeChanged@{onNetworkTypeChanged}}
\index{onNetworkTypeChanged@{onNetworkTypeChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onNetworkTypeChanged()}{onNetworkTypeChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Network\+Type\+Changed (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{N\+E\+T\+W\+O\+R\+K\+\_\+\+T\+Y\+PE}]{type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the local network type changes.

This callback occurs when the connection state of the local user changes. You can get the connection state and reason for the state change in this callback. When the network connection is interrupted, this callback indicates whether the interruption is caused by a network type change or poor network conditions. 
\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em type} & The type of the local network connection. See \#\+N\+E\+T\+W\+O\+R\+K\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf493382687e305895738847b30fdf0d}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aaf493382687e305895738847b30fdf0d}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onEncryptionError@{onEncryptionError}}
\index{onEncryptionError@{onEncryptionError}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onEncryptionError()}{onEncryptionError()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Encryption\+Error (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{E\+N\+C\+R\+Y\+P\+T\+I\+O\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE}]{error\+Type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the built-\/in encryption errors.

When encryption is enabled by calling {\ttfamily enable\+Encryption}, the S\+DK triggers this callback if an error occurs in encryption or decryption on the sender or the receiver side. 
\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em error\+Type} & The error type. See \#\+E\+N\+C\+R\+Y\+P\+T\+I\+O\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac44a942487b3045fd98a6f79edc5320b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac44a942487b3045fd98a6f79edc5320b}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUploadLogResult@{onUploadLogResult}}
\index{onUploadLogResult@{onUploadLogResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUploadLogResult()}{onUploadLogResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Upload\+Log\+Result (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const char $\ast$}]{request\+Id,  }\item[{bool}]{success,  }\item[{U\+P\+L\+O\+A\+D\+\_\+\+E\+R\+R\+O\+R\+\_\+\+R\+E\+A\+S\+ON}]{reason }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the user log upload result 
\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em request\+Id} & Request\+Id of the upload \\
\hline
{\em success} & Is upload success \\
\hline
{\em reason} & Reason of the upload, 0\+: OK, 1 Network Error, 2 Server Error. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8511a2e4c476ad522faa0ec70a37128c}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8511a2e4c476ad522faa0ec70a37128c}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserAccountUpdated@{onUserAccountUpdated}}
\index{onUserAccountUpdated@{onUserAccountUpdated}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserAccountUpdated()}{onUserAccountUpdated()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+User\+Account\+Updated (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{remote\+Uid,  }\item[{const char $\ast$}]{remote\+User\+Account }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the user account is updated.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em remote\+Uid} & The user ID. \\
\hline
{\em user\+Account} & The user account. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3943328c22d66beecb6519dc256c77ad}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3943328c22d66beecb6519dc256c77ad}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onSnapshotTaken@{onSnapshotTaken}}
\index{onSnapshotTaken@{onSnapshotTaken}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onSnapshotTaken()}{onSnapshotTaken()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Snapshot\+Taken (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid,  }\item[{const char $\ast$}]{file\+Path,  }\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{err\+Code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the result of taking a video snapshot.

After a successful {\ttfamily take\+Snapshot} method call, the S\+DK triggers this callback to report whether the snapshot is successfully taken, as well as the details for that snapshot. 
\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & The user ID. A {\ttfamily uid} of 0 indicates the local user. \\
\hline
{\em file\+Path} & The local path of the snapshot. \\
\hline
{\em width} & The width (px) of the snapshot. \\
\hline
{\em height} & The height (px) of the snapshot. \\
\hline
{\em err\+Code} & The message that confirms success or gives the reason why the snapshot is not successfully taken\+:
\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/1\+: The S\+DK fails to write data to a file or encode a J\+P\+EG image.
\item -\/2\+: The S\+DK does not find the video stream of the specified user within one second after the {\ttfamily take\+Snapshot} method call succeeds.
\item -\/3\+: Calling the {\ttfamily take\+Snapshot} method too frequently. Call the {\ttfamily take\+Snapshot} method after receiving the {\ttfamily on\+Snapshot\+Taken} callback from the previous call. 
\end{DoxyItemize}
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2214022295501289003fbd16944cc1c0}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2214022295501289003fbd16944cc1c0}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoRenderingTracingResult@{onVideoRenderingTracingResult}}
\index{onVideoRenderingTracingResult@{onVideoRenderingTracingResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoRenderingTracingResult()}{onVideoRenderingTracingResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Video\+Rendering\+Tracing\+Result (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid,  }\item[{M\+E\+D\+I\+A\+\_\+\+T\+R\+A\+C\+E\+\_\+\+E\+V\+E\+NT}]{current\+Event,  }\item[{\mbox{\hyperlink{structagora_1_1rtc_1_1_video_rendering_tracing_info}{Video\+Rendering\+Tracing\+Info}}}]{tracing\+Info }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reports the tracing result of video rendering event of the user.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & The user ID. \\
\hline
{\em current\+Event} & The current event of the tracing result\+: \#\+M\+E\+D\+I\+A\+\_\+\+T\+R\+A\+C\+E\+\_\+\+E\+V\+E\+NT. \\
\hline
{\em tracing\+Info} & The tracing result\+: \#\+Video\+Rendering\+Tracing\+Info. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af7b9afcdb9ab1137adab299da279b7a4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af7b9afcdb9ab1137adab299da279b7a4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onSetRtmFlagResult@{onSetRtmFlagResult}}
\index{onSetRtmFlagResult@{onSetRtmFlagResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onSetRtmFlagResult()}{onSetRtmFlagResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Set\+Rtm\+Flag\+Result (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{int}]{code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when receive use rtm response.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em code} & The error code\+: \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9dafe205d7e30204ece823f5238dc2ed}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9dafe205d7e30204ece823f5238dc2ed}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onTranscodedStreamLayoutInfo@{onTranscodedStreamLayoutInfo}}
\index{onTranscodedStreamLayoutInfo@{onTranscodedStreamLayoutInfo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onTranscodedStreamLayoutInfo()}{onTranscodedStreamLayoutInfo()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Transcoded\+Stream\+Layout\+Info (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid,  }\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{layout\+Count,  }\item[{const \mbox{\hyperlink{structagora_1_1_video_layout}{Video\+Layout}} $\ast$}]{layoutlist }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when receive a video transcoder stream which has video layout info.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & user id of the transcoded stream. \\
\hline
{\em width} & width of the transcoded stream. \\
\hline
{\em height} & height of the transcoded stream. \\
\hline
{\em layout\+Count} & count of layout info in the transcoded stream. \\
\hline
{\em layoutlist} & video layout info list of the transcoded stream. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8e9e946f237974d2dfeb6ae44f0a3fea}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8e9e946f237974d2dfeb6ae44f0a3fea}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioMetadataReceived@{onAudioMetadataReceived}}
\index{onAudioMetadataReceived@{onAudioMetadataReceived}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioMetadataReceived()}{onAudioMetadataReceived()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Audio\+Metadata\+Received (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{uid\+\_\+t}]{uid,  }\item[{const char $\ast$}]{metadata,  }\item[{size\+\_\+t}]{length }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

The audio metadata received.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em uid} & ID of the remote user. \\
\hline
{\em metadata} & The pointer of metadata \\
\hline
{\em length} & Size of metadata @technical preview \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7925bb4cbb349fa88386fd4dab82b9bb}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7925bb4cbb349fa88386fd4dab82b9bb}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onMultipathStats@{onMultipathStats}}
\index{onMultipathStats@{onMultipathStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onMultipathStats()}{onMultipathStats()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Multipath\+Stats (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_multipath_stats}{Multipath\+Stats}} \&}]{stats }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Callback for multipath transmission statistics. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
Call timing\+: This callback is triggered after you set {\ttfamily enable\+Multipath} to {\ttfamily true} to enable multipath transmission.


\begin{DoxyParams}{Parameters}
{\em stats} & Multipath transmission statistics. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_multipath_stats}{Multipath\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5b31ba432b5be20c1f63ecd5052a75b4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5b31ba432b5be20c1f63ecd5052a75b4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRenewTokenResult@{onRenewTokenResult}}
\index{onRenewTokenResult@{onRenewTokenResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRenewTokenResult()}{onRenewTokenResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+Ex\+::on\+Renew\+Token\+Result (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} \&}]{connection,  }\item[{const char $\ast$}]{token,  }\item[{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+C\+O\+DE}]{code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when a user renews the token.

This callback notifies the app that the user renews the token by calling {\ttfamily renew\+Token}. From this callback, the app can get the result of {\ttfamily renew\+Token}.


\begin{DoxyParams}{Parameters}
{\em connection} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}} object. \\
\hline
{\em token} & The token. \\
\hline
{\em code} & The error code. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aafceb1f91ae9bd82317bf25981e6851b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aafceb1f91ae9bd82317bf25981e6851b}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onJoinChannelSuccess@{onJoinChannelSuccess}}
\index{onJoinChannelSuccess@{onJoinChannelSuccess}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onJoinChannelSuccess()}{onJoinChannelSuccess()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Join\+Channel\+Success}



Occurs when a user joins a channel. 

This callback notifies the application that a user joins a specified channel. Call timing\+: The S\+DK triggers this callback when you call {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)}, {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} , {\ttfamily join\+Channel\+With\+User\+Account(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ user\+Account)}, {\ttfamily join\+Channel\+With\+User\+Account(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ user\+Account, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} , {\ttfamily join\+Channel\+Ex} or {\ttfamily join\+Channel\+With\+User\+Account\+Ex} to join a channel.


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em uid} & The ID of the user who joins the channel. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a89b17edd14a8bbf0bb67d0478a92fbc5}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a89b17edd14a8bbf0bb67d0478a92fbc5}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRejoinChannelSuccess@{onRejoinChannelSuccess}}
\index{onRejoinChannelSuccess@{onRejoinChannelSuccess}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRejoinChannelSuccess()}{onRejoinChannelSuccess()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Rejoin\+Channel\+Success}



Occurs when a user rejoins the channel. 

Call timing\+: When a user loses connection with the server because of network problems, the S\+DK automatically tries to reconnect and triggers this callback upon reconnection.


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em uid} & The ID of the user who rejoins the channel. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab612312f6b4f72e1a036ef7683b8d324}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab612312f6b4f72e1a036ef7683b8d324}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioQuality@{onAudioQuality}}
\index{onAudioQuality@{onAudioQuality}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioQuality()}{onAudioQuality()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Audio\+Quality}



Reports the statistics of the audio stream sent by each remote user. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000035}{Deprecated}}]This callback is deprecated. Use on\+Remote\+Audio\+Stats instead.\end{DoxyRefDesc}


The S\+DK triggers this callback once every two seconds to report the audio quality of each remote user who is sending an audio stream. If a channel has multiple users sending audio streams, the S\+DK triggers this callback as many times.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user sending the audio stream. \\
\hline
{\em quality} & Audio quality of the user. See {\ttfamily Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE}. \\
\hline
{\em delay} & The network delay (ms) from the sender to the receiver, including the delay caused by audio sampling pre-\/processing, network transmission, and network jitter buffering. \\
\hline
{\em lost} & The packet loss rate (\%) of the audio packet sent from the remote user to the receiver. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aab1184a2b276f509870c055a9ff8fac4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aab1184a2b276f509870c055a9ff8fac4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioVolumeIndication@{onAudioVolumeIndication}}
\index{onAudioVolumeIndication@{onAudioVolumeIndication}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioVolumeIndication()}{onAudioVolumeIndication()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Audio\+Volume\+Indication}



Reports the volume information of users. 

By default, this callback is disabled. You can enable it by calling {\ttfamily enable\+Audio\+Volume\+Indication}. Once this callback is enabled and users send streams in the channel, the S\+DK triggers the {\ttfamily on\+Audio\+Volume\+Indication} callback according to the time interval set in {\ttfamily enable\+Audio\+Volume\+Indication}. The S\+DK triggers two independent {\ttfamily on\+Audio\+Volume\+Indication} callbacks simultaneously, which separately report the volume information of the local user who sends a stream and the remote users (up to three) whose instantaneous volume is the highest.

\begin{DoxyNote}{Note}
Once this callback is enabled, if the local user calls the {\ttfamily mute\+Local\+Audio\+Stream} method to mute, the S\+DK continues to report the volume indication of the local user. If a remote user whose volume is one of the three highest in the channel stops publishing the audio stream for 20 seconds, the callback excludes this user\textquotesingle{}s information; if all remote users stop publishing audio streams for 20 seconds, the S\+DK stops triggering the callback for remote users.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em speakers} & The volume information of the users. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_audio_volume_info}{Audio\+Volume\+Info}}}. An empty {\ttfamily speakers} array in the callback indicates that no remote user is in the channel or is sending a stream. \\
\hline
{\em speaker\+Number} & The total number of users.
\begin{DoxyItemize}
\item In the callback for the local user, if the local user is sending streams, the value of {\ttfamily speaker\+Number} is 1.
\item In the callback for remote users, the value range of {\ttfamily speaker\+Number} is \mbox{[}0,3\mbox{]}. If the number of remote users who send streams is greater than or equal to three, the value of {\ttfamily speaker\+Number} is 3. 
\end{DoxyItemize}\\
\hline
{\em total\+Volume} & The volume of the speaker. The value range is \mbox{[}0,255\mbox{]}.
\begin{DoxyItemize}
\item In the callback for the local user, {\ttfamily total\+Volume} is the volume of the local user who sends a stream.
\item In the callback for remote users, {\ttfamily total\+Volume} is the sum of the volume of all remote users (up to three) whose instantaneous volume is the highest. If the user calls {\ttfamily start\+Audio\+Mixing(const char$\ast$ file\+Path, bool loopback, int cycle, int start\+Pos)} , then {\ttfamily total\+Volume} is the volume after audio mixing. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a98f832d175dfc044b31f0ec5874460fb}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a98f832d175dfc044b31f0ec5874460fb}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLeaveChannel@{onLeaveChannel}}
\index{onLeaveChannel@{onLeaveChannel}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLeaveChannel()}{onLeaveChannel()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Leave\+Channel}



Occurs when a user leaves a channel. 

You can obtain information such as the total duration of a call, and the data traffic that the S\+DK transmits and receives. Call timing\+: The S\+DK triggers this callback after you call {\ttfamily leave\+Channel()}, {\ttfamily leave\+Channel(const \mbox{\hyperlink{structagora_1_1rtc_1_1_leave_channel_options}{Leave\+Channel\+Options}}\& options)} , {\ttfamily leave\+Channel\+Ex(const Rtc\+Connection\& connection)}, or {\ttfamily leave\+Channel\+Ex(const \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_connection}{Rtc\+Connection}}\& connection, const \mbox{\hyperlink{structagora_1_1rtc_1_1_leave_channel_options}{Leave\+Channel\+Options}}\& options)} to leave a channel.


\begin{DoxyParams}{Parameters}
{\em stats} & Call statistics. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ada38743982296a75879018c5773f08a1}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ada38743982296a75879018c5773f08a1}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRtcStats@{onRtcStats}}
\index{onRtcStats@{onRtcStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRtcStats()}{onRtcStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Rtc\+Stats}



Reports the statistics about the current call. 

Call timing\+: The S\+DK triggers this callback once every two seconds after the user joins the channel.


\begin{DoxyParams}{Parameters}
{\em stats} & Statistics of the R\+TC engine. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_rtc_stats}{Rtc\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a80003ae8cce02039f3aa0e8ffad7deed}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a80003ae8cce02039f3aa0e8ffad7deed}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onNetworkQuality@{onNetworkQuality}}
\index{onNetworkQuality@{onNetworkQuality}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onNetworkQuality()}{onNetworkQuality()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Network\+Quality}



Reports the last mile network quality of each user in the channel. 

This callback reports the last mile network conditions of each user in the channel. Last mile refers to the connection between the local device and Agora\textquotesingle{}s edge server. The S\+DK triggers this callback once every two seconds. If a channel includes multiple users, the S\+DK triggers this callback as many times. This callback provides feedback on network quality through sending and receiving broadcast packets within the channel. Excessive broadcast packets can lead to broadcast storms. To prevent broadcast storms from causing a large amount of data transmission within the channel, this callback supports feedback on the network quality of up to 4 remote hosts simultaneously by default.

\begin{DoxyNote}{Note}
{\ttfamily tx\+Quality} is {\ttfamily U\+N\+K\+N\+O\+WN} when the user is not sending a stream; {\ttfamily rx\+Quality} is {\ttfamily U\+N\+K\+N\+O\+WN} when the user is not receiving a stream.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. The network quality of the user with this user ID is reported. If the uid is 0, the local network quality is reported. \\
\hline
{\em tx\+Quality} & Uplink network quality rating of the user in terms of the transmission bit rate, packet loss rate, average R\+TT (Round-\/\+Trip Time) and jitter of the uplink network. This parameter is a quality rating helping you understand how well the current uplink network conditions can support the selected video encoder configuration. For example, a 1000 Kbps uplink network may be adequate for video frames with a resolution of 640 × 480 and a frame rate of 15 fps in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile, but might be inadequate for resolutions higher than 1280 × 720. See {\ttfamily Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE}. \\
\hline
{\em rx\+Quality} & Downlink network quality rating of the user in terms of packet loss rate, average R\+TT, and jitter of the downlink network. See {\ttfamily Q\+U\+A\+L\+I\+T\+Y\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2747779b0e8f7eb644069d134affd433}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2747779b0e8f7eb644069d134affd433}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onIntraRequestReceived@{onIntraRequestReceived}}
\index{onIntraRequestReceived@{onIntraRequestReceived}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onIntraRequestReceived()}{onIntraRequestReceived()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Intra\+Request\+Received}

Occurs when intra request from remote user is received.

This callback is triggered once remote user needs one Key frame. \mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a734c39289a40a97bc3dcd7df9413034a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a734c39289a40a97bc3dcd7df9413034a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstLocalVideoFramePublished@{onFirstLocalVideoFramePublished}}
\index{onFirstLocalVideoFramePublished@{onFirstLocalVideoFramePublished}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstLocalVideoFramePublished()}{onFirstLocalVideoFramePublished()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Local\+Video\+Frame\+Published}



Occurs when the first video frame is published. 

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The local client enables the video module and calls {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)} or {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} to join the channel successfully.
\item The local client calls {\ttfamily mute\+Local\+Video\+Stream} ({\ttfamily true}) and {\ttfamily mute\+Local\+Video\+Stream} ({\ttfamily false}) in sequence.
\item The local client calls {\ttfamily disable\+Video} and {\ttfamily enable\+Video} in sequence.
\item The local client calls {\ttfamily push\+Video\+Frame} to successfully push the video frame to the S\+DK.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em source} & The type of the video source. See {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)} or {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad8083c52d15135762a31c48192ad64f2}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad8083c52d15135762a31c48192ad64f2}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteVideoDecoded@{onFirstRemoteVideoDecoded}}
\index{onFirstRemoteVideoDecoded@{onFirstRemoteVideoDecoded}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteVideoDecoded()}{onFirstRemoteVideoDecoded()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Remote\+Video\+Decoded}



Occurs when the first remote video frame is received and decoded. 

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The remote user joins the channel and sends the video stream.
\item The remote user stops sending the video stream and re-\/sends it after 15 seconds. Reasons for such an interruption include\+:
\begin{DoxyItemize}
\item The remote user leaves the channel.
\item The remote user drops offline.
\item The remote user calls {\ttfamily disable\+Video} to disable video.
\end{DoxyItemize}
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user sending the video stream. \\
\hline
{\em width} & The width (px) of the video stream. \\
\hline
{\em height} & The height (px) of the video stream. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)} or {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3ef9bc5dd7c16c92ed1707cca4594bfb}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3ef9bc5dd7c16c92ed1707cca4594bfb}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoSizeChanged@{onVideoSizeChanged}}
\index{onVideoSizeChanged@{onVideoSizeChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoSizeChanged()}{onVideoSizeChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Video\+Size\+Changed}



Occurs when the video size or rotation of a specified user changes. 


\begin{DoxyParams}{Parameters}
{\em source\+Type} & The type of the video source. See {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em uid} & The ID of the user whose video size or rotation changes. (The {\ttfamily uid} for the local user is 0. The video is the local user\textquotesingle{}s video preview). \\
\hline
{\em width} & The width (pixels) of the video stream. \\
\hline
{\em height} & The height (pixels) of the video stream. \\
\hline
{\em rotation} & The rotation information. The value range is \mbox{[}0,360).Note\+: On the i\+OS platform, the parameter value is always 0. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a48101bcc663c35b2b86562a20ea2eb96}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a48101bcc663c35b2b86562a20ea2eb96}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalVideoStateChanged@{onLocalVideoStateChanged}}
\index{onLocalVideoStateChanged@{onLocalVideoStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalVideoStateChanged()}{onLocalVideoStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Local\+Video\+State\+Changed}



Occurs when the local video stream state changes. 

When the status of the local video changes, the S\+DK triggers this callback to report the current local video state and the reason for the state change. Applicable scenarios\+: You can use this callback to stay updated on the state changes of the local video stream, and take corresponding measures based on the reasons for the state changes, to better manage and debug issues related to the video stream. Call timing\+: -\/ The S\+DK triggeres this callback under the following circumstances, with the {\ttfamily state} as L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+F\+A\+I\+L\+ED, and the {\ttfamily reason} as {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+C\+A\+P\+T\+U\+R\+E\+\_\+\+F\+A\+I\+L\+U\+RE}\+:
\begin{DoxyItemize}
\item The app switches to the background, and the system revokes the camera resource.
\item For Android 9 and later versions, after an app is in the background for a period, the system automatically revokes camera permissions.
\item For Android 6 and later versions, if the camera is held by a third-\/party app for a certain duration and then released, the S\+DK triggers this callback and reports the {\ttfamily on\+Local\+Video\+State\+Changed} ({\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+C\+A\+P\+T\+U\+R\+I\+NG,L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK}) callback.
\item The camera starts normally, but does not output video frames for four consecutive seconds.
\end{DoxyItemize}

When the camera outputs captured video frames, if the S\+DK detects 15 consecutive duplicate video frames, it triggers this callback, with the {\ttfamily state} as {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+C\+A\+P\+T\+U\+R\+I\+NG} and the {\ttfamily reason} as {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+C\+A\+P\+T\+U\+R\+E\+\_\+\+F\+A\+I\+L\+U\+RE}.Note\+:
\begin{DoxyItemize}
\item Note that the video frame duplication detection is only available for video frames with a resolution greater than 200 × 200, a frame rate greater than or equal to 10 fps, and a bitrate less than 20 Kbps.
\item Normally, if there is an error in video capturing, the issue can be troubleshooted through the {\ttfamily reason} parameter in this callback. However, on some devices, when there is an issue with capturing (such as freezing), the Android system will not throw any error callbacks, so the S\+DK cannot report the reason for the change in local video status. In this case, you can determine if there is no video frame being captured by checking the following\+: this callback reports the {\ttfamily state} as {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+C\+A\+P\+T\+U\+R\+I\+NG} or {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+E\+N\+C\+O\+D\+I\+NG}, and the {\ttfamily capture\+Frame\+Rate} in the {\ttfamily on\+Local\+Video\+Stats} callback is 0.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Note that the video frame duplication detection is only available for video frames with a resolution greater than 200 × 200, a frame rate greater than or equal to 10 fps, and a bitrate less than 20 Kbps.
\item Normally, if there is an error in video capturing, the issue can be troubleshooted through the {\ttfamily reason} parameter in this callback. However, on some devices, when there is an issue with capturing (such as freezing), the Android system will not throw any error callbacks, so the S\+DK cannot report the reason for the change in local video status. In this case, you can determine if there is no video frame being captured by checking the following\+: this callback reports the {\ttfamily state} as {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+C\+A\+P\+T\+U\+R\+I\+NG} or {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+E\+N\+C\+O\+D\+I\+NG}, and the {\ttfamily capture\+Frame\+Rate} in the {\ttfamily on\+Local\+Video\+Stats} callback is 0.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em source} & The type of the video source. See {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em state} & The state of the local video, see {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em reason} & The reasons for changes in local video state. See {\ttfamily L\+O\+C\+A\+L\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae69799238c6a6cd9f017274dd630b74e}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae69799238c6a6cd9f017274dd630b74e}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoStateChanged@{onRemoteVideoStateChanged}}
\index{onRemoteVideoStateChanged@{onRemoteVideoStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoStateChanged()}{onRemoteVideoStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Video\+State\+Changed}



Occurs when the remote video stream state changes. 

\begin{DoxyNote}{Note}
This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 32.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user whose video state changes. \\
\hline
{\em state} & The state of the remote video. See {\ttfamily R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em reason} & The reason for the remote video state change. See {\ttfamily R\+E\+M\+O\+T\+E\+\_\+\+V\+I\+D\+E\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON}. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling the {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} method until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1caf7870fa39a8b938d8d485c3ee7dce}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a1caf7870fa39a8b938d8d485c3ee7dce}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteVideoFrame@{onFirstRemoteVideoFrame}}
\index{onFirstRemoteVideoFrame@{onFirstRemoteVideoFrame}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteVideoFrame()}{onFirstRemoteVideoFrame()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Remote\+Video\+Frame}



Occurs when the renderer receives the first frame of the remote video. 

\begin{DoxyNote}{Note}
This callback is only triggered when the video frame is rendered by the S\+DK; it will not be triggered if the user employs custom video rendering.\+You need to implement this independently using methods outside the S\+DK.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user sending the video stream. \\
\hline
{\em width} & The width (px) of the video stream. \\
\hline
{\em height} & The height (px) of the video stream. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)} or {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a985a675469baf9d54feb8781732e0ca8}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a985a675469baf9d54feb8781732e0ca8}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserJoined@{onUserJoined}}
\index{onUserJoined@{onUserJoined}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserJoined()}{onUserJoined()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Joined}



Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) joins the channel. 


\begin{DoxyItemize}
\item In a communication channel, this callback indicates that a remote user joins the channel. The S\+DK also triggers this callback to report the existing users in the channel when a user joins the channel.
\item In a live-\/broadcast channel, this callback indicates that a host joins the channel. The S\+DK also triggers this callback to report the existing hosts in the channel when a host joins the channel. Agora recommends limiting the number of co-\/hosts to 32, with a maximum of 17 video hosts. Call timing\+: The S\+DK triggers this callback under one of the following circumstances\+:
\item A remote user/host joins the channel.
\item A remote user switches the user role to the host after joining the channel.
\item A remote user/host rejoins the channel after a network interruption.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the user or host who joins the channel. \\
\hline
{\em elapsed} & Time delay (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, const char$\ast$ info, uid\+\_\+t uid)} or {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until this callback is triggered. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9602593c05a16eafa7c094aa330c0719}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a9602593c05a16eafa7c094aa330c0719}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserOffline@{onUserOffline}}
\index{onUserOffline@{onUserOffline}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserOffline()}{onUserOffline()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Offline}



Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) leaves the channel. 

There are generally two reasons for users to become offline\+:
\begin{DoxyItemize}
\item Leave the channel\+: When a user/host leaves the channel, the user/host sends a goodbye message.
\item Drop offline\+: When no data packet of the user or host is received for a certain period of time (20 seconds for the communication profile, and more for the live broadcast profile), the S\+DK assumes that the user/host drops offline. A poor network connection may lead to false detections. It is recommended to use the Agora R\+TM S\+DK for reliable offline detection. Call timing\+: This callback is triggered when a remote user (in the communication profile) or host (in the live streaming profile) leaves a channel.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the user who leaves the channel or goes offline. \\
\hline
{\em reason} & Reasons why a remote user (in the communication profile) or host (in the live streaming profile) goes offline. See {\ttfamily U\+S\+E\+R\+\_\+\+O\+F\+F\+L\+I\+N\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a00433467903bd28b77631179a89a5bc6}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a00433467903bd28b77631179a89a5bc6}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserMuteAudio@{onUserMuteAudio}}
\index{onUserMuteAudio@{onUserMuteAudio}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserMuteAudio()}{onUserMuteAudio()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Mute\+Audio}



Occurs when a remote user (in the communication profile) or a host (in the live streaming profile) stops/resumes sending the audio stream. 

The S\+DK triggers this callback when the remote user stops or resumes sending the audio stream by calling the {\ttfamily mute\+Local\+Audio\+Stream} method.

\begin{DoxyNote}{Note}
This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 32.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em muted} & Whether the remote user\textquotesingle{}s audio stream is muted\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: User\textquotesingle{}s audio stream is muted.
\item {\ttfamily false}\+: User\textquotesingle{}s audio stream is unmuted. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8279591a761a5c2c1c4c1c4e677cbe0e}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a8279591a761a5c2c1c4c1c4e677cbe0e}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserMuteVideo@{onUserMuteVideo}}
\index{onUserMuteVideo@{onUserMuteVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserMuteVideo()}{onUserMuteVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Mute\+Video}



Occurs when a remote user stops or resumes publishing the video stream. 

When a remote user calls {\ttfamily mute\+Local\+Video\+Stream} to stop or resume publishing the video stream, the S\+DK triggers this callback to report to the local user the state of the streams published by the remote user.

\begin{DoxyNote}{Note}
This callback can be inaccurate when the number of users (in the communication profile) or hosts (in the live streaming profile) in a channel exceeds 32.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em muted} & Whether the remote user stops publishing the video stream\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: The remote user stops publishing the video stream.
\item {\ttfamily false}\+: The remote user resumes publishing the video stream. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a91bef59a3659b6e6bcbe43eb203d0732}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a91bef59a3659b6e6bcbe43eb203d0732}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserEnableVideo@{onUserEnableVideo}}
\index{onUserEnableVideo@{onUserEnableVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserEnableVideo()}{onUserEnableVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Enable\+Video}



Occurs when a remote user enables or disables the video module. 

Once the video module is disabled, the user can only use a voice call. The user cannot send or receive any video. The S\+DK triggers this callback when a remote user enables or disables the video module by calling the {\ttfamily enable\+Video} or {\ttfamily disable\+Video} method.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em enabled} & 
\begin{DoxyItemize}
\item {\ttfamily true}\+: The video module is enabled.
\end{DoxyItemize}\\
\hline
\end{DoxyParams}

\begin{DoxyItemize}
\item {\ttfamily false}\+: The video module is disabled. 
\end{DoxyItemize}\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a199de5107bfc84c056998e2e45bba772}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a199de5107bfc84c056998e2e45bba772}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserEnableLocalVideo@{onUserEnableLocalVideo}}
\index{onUserEnableLocalVideo@{onUserEnableLocalVideo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserEnableLocalVideo()}{onUserEnableLocalVideo()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Enable\+Local\+Video}



Occurs when a specific remote user enables/disables the local video capturing function. 

The S\+DK triggers this callback when the remote user resumes or stops capturing the video stream by calling the {\ttfamily enable\+Local\+Video} method.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em enabled} & Whether the specified remote user enables/disables local video capturing\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: The video module is enabled. Other users in the channel can see the video of this remote user.
\item {\ttfamily false}\+: The video module is disabled. Other users in the channel can no longer receive the video stream from this remote user, while this remote user can still receive the video streams from other users. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2744650deb07a19c91f342363d606451}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2744650deb07a19c91f342363d606451}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserStateChanged@{onUserStateChanged}}
\index{onUserStateChanged@{onUserStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserStateChanged()}{onUserStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+State\+Changed}

Occurs when the remote user audio or video state is updated. 
\begin{DoxyParams}{Parameters}
{\em uid} & The uid of the remote user. \\
\hline
{\em state} & The remote user\textquotesingle{}s audio or video state\+: \#\+R\+E\+M\+O\+T\+E\+\_\+\+U\+S\+E\+R\+\_\+\+S\+T\+A\+TE. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0cb47df6a8ef7acee229eb307d6f32c3}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0cb47df6a8ef7acee229eb307d6f32c3}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalAudioStats@{onLocalAudioStats}}
\index{onLocalAudioStats@{onLocalAudioStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalAudioStats()}{onLocalAudioStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Local\+Audio\+Stats}



Reports the statistics of the local audio stream. 

The S\+DK triggers this callback once every two seconds.


\begin{DoxyParams}{Parameters}
{\em stats} & Local audio statistics. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_local_audio_stats}{Local\+Audio\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af8a59626a9265264fb4638e048091d3a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af8a59626a9265264fb4638e048091d3a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioStats@{onRemoteAudioStats}}
\index{onRemoteAudioStats@{onRemoteAudioStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioStats()}{onRemoteAudioStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Audio\+Stats}



Reports the transport-\/layer statistics of each remote audio stream. 

The S\+DK triggers this callback once every two seconds for each remote user who is sending audio streams. If a channel includes multiple remote users, the S\+DK triggers this callback as many times.


\begin{DoxyParams}{Parameters}
{\em stats} & The statistics of the received remote audio streams. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_audio_stats}{Remote\+Audio\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3476915aca1141cb7821dba9da41af2b}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3476915aca1141cb7821dba9da41af2b}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalVideoStats@{onLocalVideoStats}}
\index{onLocalVideoStats@{onLocalVideoStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalVideoStats()}{onLocalVideoStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Local\+Video\+Stats}



Reports the statistics of the local video stream. 

The S\+DK triggers this callback once every two seconds to report the statistics of the local video stream.


\begin{DoxyParams}{Parameters}
{\em source} & The type of the video source. See {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em stats} & The statistics of the local video stream. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_local_video_stats}{Local\+Video\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7163ffb650852be270ba0215b596d968}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7163ffb650852be270ba0215b596d968}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoStats@{onRemoteVideoStats}}
\index{onRemoteVideoStats@{onRemoteVideoStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoStats()}{onRemoteVideoStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Video\+Stats}



Reports the statistics of the video stream sent by each remote users. 

Reports the statistics of the video stream from the remote users. The S\+DK triggers this callback once every two seconds for each remote user. If a channel has multiple users/hosts sending video streams, the S\+DK triggers this callback as many times.


\begin{DoxyParams}{Parameters}
{\em stats} & Statistics of the remote video stream. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_remote_video_stats}{Remote\+Video\+Stats}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab5c110382a2ef7eb92cd069c22884727}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab5c110382a2ef7eb92cd069c22884727}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionLost@{onConnectionLost}}
\index{onConnectionLost@{onConnectionLost}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionLost()}{onConnectionLost()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Connection\+Lost}



Occurs when the S\+DK cannot reconnect to Agora\textquotesingle{}s edge server 10 seconds after its connection to the server is interrupted. 

The S\+DK triggers this callback when it cannot connect to the server 10 seconds after calling the {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} method, regardless of whether it is in the channel. If the S\+DK fails to rejoin the channel 20 minutes after being disconnected from Agora\textquotesingle{}s edge server, the S\+DK stops rejoining the channel. \mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac5d532fe92a0d6c424e87e694225b6e9}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac5d532fe92a0d6c424e87e694225b6e9}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionInterrupted@{onConnectionInterrupted}}
\index{onConnectionInterrupted@{onConnectionInterrupted}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionInterrupted()}{onConnectionInterrupted()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Connection\+Interrupted}



Occurs when the connection between the S\+DK and the server is interrupted. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000039}{Deprecated}}]Use {\ttfamily on\+Connection\+State\+Changed} instead.\end{DoxyRefDesc}


The S\+DK triggers this callback when it loses connection with the server for more than four seconds after the connection is established. After triggering this callback, the S\+DK tries to reconnect to the server. You can use this callback to implement pop-\/up reminders. The differences between this callback and {\ttfamily on\+Connection\+Lost} are as follow\+:
\begin{DoxyItemize}
\item The S\+DK triggers the {\ttfamily on\+Connection\+Interrupted} callback when it loses connection with the server for more than four seconds after it successfully joins the channel.
\item The S\+DK triggers the {\ttfamily on\+Connection\+Lost} callback when it loses connection with the server for more than 10 seconds, whether or not it joins the channel. If the S\+DK fails to rejoin the channel 20 minutes after being disconnected from Agora\textquotesingle{}s edge server, the S\+DK stops rejoining the channel. 
\end{DoxyItemize}\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a96abb5e2fef0afc0a80e87388ebdaa5e}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a96abb5e2fef0afc0a80e87388ebdaa5e}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionBanned@{onConnectionBanned}}
\index{onConnectionBanned@{onConnectionBanned}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionBanned()}{onConnectionBanned()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Connection\+Banned}



Occurs when the connection is banned by the Agora server. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000040}{Deprecated}}]Use {\ttfamily on\+Connection\+State\+Changed} instead. \end{DoxyRefDesc}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0add560882999732aec21098c29280e0}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a0add560882999732aec21098c29280e0}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onStreamMessage@{onStreamMessage}}
\index{onStreamMessage@{onStreamMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onStreamMessage()}{onStreamMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Stream\+Message}



Occurs when the local user receives the data stream from the remote user. 

The S\+DK triggers this callback when the local user receives the stream message that the remote user sends by calling the {\ttfamily send\+Stream\+Message} method.

\begin{DoxyNote}{Note}
If you need a more comprehensive solution for low-\/latency, high-\/concurrency, and scalable real-\/time messaging and status synchronization, it is recommended to use {\ttfamily Signaling}.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user sending the message. \\
\hline
{\em stream\+Id} & The stream ID of the received message. \\
\hline
{\em data} & The data received. \\
\hline
{\em length} & The data length (byte). \\
\hline
{\em sent\+Ts} & The time when the data stream is sent. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3af56e33ca95ccc6b9dce4b2a51c2b33}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3af56e33ca95ccc6b9dce4b2a51c2b33}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onStreamMessageError@{onStreamMessageError}}
\index{onStreamMessageError@{onStreamMessageError}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onStreamMessageError()}{onStreamMessageError()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Stream\+Message\+Error}



Occurs when the local user does not receive the data stream from the remote user. 

The S\+DK triggers this callback when the local user fails to receive the stream message that the remote user sends by calling the {\ttfamily send\+Stream\+Message} method.

\begin{DoxyNote}{Note}
If you need a more comprehensive solution for low-\/latency, high-\/concurrency, and scalable real-\/time messaging and status synchronization, it is recommended to use {\ttfamily Signaling}.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user sending the message. \\
\hline
{\em stream\+Id} & The stream ID of the received message. \\
\hline
{\em code} & Error code. \\
\hline
{\em missed} & The number of lost messages. \\
\hline
{\em cached} & Number of incoming cached messages when the data stream is interrupted. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab9b8efc5d670fe14dd0cea7da23b57f2}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab9b8efc5d670fe14dd0cea7da23b57f2}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRdtMessage@{onRdtMessage}}
\index{onRdtMessage@{onRdtMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRdtMessage()}{onRdtMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Rdt\+Message}



Occurs when the local user receives data via Reliable Data Transmission (R\+DT) from a remote user. 

@technical preview

The S\+DK triggers this callback when the user receives the data stream that another user sends by calling the \mbox{\hyperlink{classagora_1_1rtc_1_1_i_rtc_engine_abec7a493c27c4c0474dac59a23808879}{send\+Rdt\+Message}} method.


\begin{DoxyParams}{Parameters}
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em type} & The R\+DT stream type. See Rdt\+Stream\+Type. \\
\hline
{\em data} & The data received. \\
\hline
{\em length} & The length (byte) of the data. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a74076ace2c84fb29dc4586d4db33b1b4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a74076ace2c84fb29dc4586d4db33b1b4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRdtStateChanged@{onRdtStateChanged}}
\index{onRdtStateChanged@{onRdtStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRdtStateChanged()}{onRdtStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Rdt\+State\+Changed}



Occurs when the R\+DT tunnel state changed. 

@technical preview


\begin{DoxyParams}{Parameters}
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em state} & The R\+DT tunnel state. See Rdt\+State. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a82a1082fc12fcc26beacb0bdc055ac91}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a82a1082fc12fcc26beacb0bdc055ac91}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onMediaControlMessage@{onMediaControlMessage}}
\index{onMediaControlMessage@{onMediaControlMessage}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onMediaControlMessage()}{onMediaControlMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Media\+Control\+Message}



Occurs when the local user receives media control message sent by a remote user. 

@technical preview

The S\+DK triggers this callback when the user receives data sent by a remote user using the send\+Media\+Control\+Message method.


\begin{DoxyParams}{Parameters}
{\em user\+Id} & ID of the user who sends the data. \\
\hline
{\em data} & The data received. \\
\hline
{\em length} & The length (byte) of the data. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa7b456b750f56ca8fdfee8611572310e}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa7b456b750f56ca8fdfee8611572310e}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRequestToken@{onRequestToken}}
\index{onRequestToken@{onRequestToken}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRequestToken()}{onRequestToken()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Request\+Token}



Occurs when the token expires. 

The S\+DK triggers this callback if the token expires. When receiving this callback, you need to generate a new token on your token server and you can renew your token through one of the following ways\+:
\begin{DoxyItemize}
\item In scenarios involving one channel\+:
\begin{DoxyItemize}
\item Call {\ttfamily renew\+Token} to pass in the new token.
\item Call {\ttfamily leave\+Channel(const Leave\+Channel\+Options\& options)} to leave the current channel and then pass in the new token when you call {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} to join a channel.
\end{DoxyItemize}
\item In scenarios involving mutiple channels\+: Call {\ttfamily update\+Channel\+Media\+Options\+Ex} to pass in the new token. 
\end{DoxyItemize}\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac401db99e49d5f240f553087cb90571d}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ac401db99e49d5f240f553087cb90571d}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onTokenPrivilegeWillExpire@{onTokenPrivilegeWillExpire}}
\index{onTokenPrivilegeWillExpire@{onTokenPrivilegeWillExpire}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onTokenPrivilegeWillExpire()}{onTokenPrivilegeWillExpire()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Token\+Privilege\+Will\+Expire}



Occurs when the token expires in 30 seconds. 

When receiving this callback, you need to generate a new token on your token server and you can renew your token through one of the following ways\+:
\begin{DoxyItemize}
\item In scenarios involving one channel\+:
\begin{DoxyItemize}
\item Call {\ttfamily renew\+Token} to pass in the new token.
\item Call {\ttfamily leave\+Channel(const Leave\+Channel\+Options\& options)} to leave the current channel and then pass in the new token when you call {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} to join a channel.
\end{DoxyItemize}
\item In scenarios involving mutiple channels\+: Call {\ttfamily update\+Channel\+Media\+Options\+Ex} to pass in the new token. Call timing\+: The S\+DK triggers this callback 30 seconds before the token expires, reminding the app to update the token.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em token} & The token that is about to expire. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a40b29ba97d3519619e22069718f27add}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a40b29ba97d3519619e22069718f27add}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLicenseValidationFailure@{onLicenseValidationFailure}}
\index{onLicenseValidationFailure@{onLicenseValidationFailure}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLicenseValidationFailure()}{onLicenseValidationFailure()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+License\+Validation\+Failure}

Occurs when connection license verification fails.

You can know the reason accordding to error code \mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a03058e62a0a4a41e80ecf0279975ab99}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a03058e62a0a4a41e80ecf0279975ab99}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstLocalAudioFramePublished@{onFirstLocalAudioFramePublished}}
\index{onFirstLocalAudioFramePublished@{onFirstLocalAudioFramePublished}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstLocalAudioFramePublished()}{onFirstLocalAudioFramePublished()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Local\+Audio\+Frame\+Published}



Occurs when the first audio frame is published. 

The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The local client enables the audio module and calls {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} successfully.
\item The local client calls {\ttfamily mute\+Local\+Audio\+Stream} ({\ttfamily true}) and {\ttfamily mute\+Local\+Audio\+Stream} ({\ttfamily false}) in sequence.
\item The local client calls {\ttfamily disable\+Audio} and {\ttfamily enable\+Audio} in sequence.
\item The local client calls {\ttfamily push\+Audio\+Frame} to successfully push the audio frame to the S\+DK.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em elapsed} & Time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a160165e2d77abe9b35d1a2e638e2ced7}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a160165e2d77abe9b35d1a2e638e2ced7}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteAudioFrame@{onFirstRemoteAudioFrame}}
\index{onFirstRemoteAudioFrame@{onFirstRemoteAudioFrame}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteAudioFrame()}{onFirstRemoteAudioFrame()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Remote\+Audio\+Frame}



Occurs when the S\+DK receives the first audio frame from a specific remote user. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000042}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+State\+Changed} instead.\end{DoxyRefDesc}



\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a599399089441b7daa560e9c410e8a7ba}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a599399089441b7daa560e9c410e8a7ba}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onFirstRemoteAudioDecoded@{onFirstRemoteAudioDecoded}}
\index{onFirstRemoteAudioDecoded@{onFirstRemoteAudioDecoded}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onFirstRemoteAudioDecoded()}{onFirstRemoteAudioDecoded()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+First\+Remote\+Audio\+Decoded}



Occurs when the S\+DK decodes the first remote audio frame for playback. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000041}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+State\+Changed} instead.\end{DoxyRefDesc}


The S\+DK triggers this callback under one of the following circumstances\+:
\begin{DoxyItemize}
\item The remote user joins the channel and sends the audio stream for the first time.
\item The remote user\textquotesingle{}s audio is offline and then goes online to re-\/send audio. It means the local user cannot receive audio in 15 seconds. Reasons for such an interruption include\+:
\begin{DoxyItemize}
\item The remote user leaves channel.
\item The remote user drops offline.
\item The remote user calls {\ttfamily mute\+Local\+Audio\+Stream} to stop sending the audio stream.
\item The remote user calls {\ttfamily disable\+Audio} to disable audio.
\end{DoxyItemize}
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em elapsed} & The time elapsed (ms) from the local user calling {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32079919217571134d36b01252de60d3}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a32079919217571134d36b01252de60d3}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onLocalAudioStateChanged@{onLocalAudioStateChanged}}
\index{onLocalAudioStateChanged@{onLocalAudioStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onLocalAudioStateChanged()}{onLocalAudioStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Local\+Audio\+State\+Changed}



Occurs when the local audio stream state changes. 

When the state of the local audio stream changes (including the state of the audio capture and encoding), the S\+DK triggers this callback to report the current state. This callback indicates the state of the local audio stream, and allows you to troubleshoot issues when audio exceptions occur.

\begin{DoxyNote}{Note}
When the state is {\ttfamily L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+T\+E\+\_\+\+F\+A\+I\+L\+ED} (3), you can view the error information in the {\ttfamily error} parameter.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em state} & The state of the local audio. See {\ttfamily L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em reason} & Reasons for local audio state changes. See {\ttfamily L\+O\+C\+A\+L\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+R\+E\+A\+M\+\_\+\+R\+E\+A\+S\+ON}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa168380f86f1dc2df1c269a785c56612}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aa168380f86f1dc2df1c269a785c56612}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioStateChanged@{onRemoteAudioStateChanged}}
\index{onRemoteAudioStateChanged@{onRemoteAudioStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioStateChanged()}{onRemoteAudioStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Audio\+State\+Changed}



Occurs when the remote audio state changes. 

When the audio state of a remote user (in a voice/video call channel) or host (in a live streaming channel) changes, the S\+DK triggers this callback to report the current state of the remote audio stream.

\begin{DoxyNote}{Note}
This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 32.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user whose audio state changes. \\
\hline
{\em state} & The state of the remote audio. See {\ttfamily R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em reason} & The reason of the remote audio state change. See {\ttfamily R\+E\+M\+O\+T\+E\+\_\+\+A\+U\+D\+I\+O\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+ON}. \\
\hline
{\em elapsed} & Time elapsed (ms) from the local user calling the {\ttfamily join\+Channel(const char$\ast$ token, const char$\ast$ channel\+Id, uid\+\_\+t uid, const \mbox{\hyperlink{structagora_1_1rtc_1_1_channel_media_options}{Channel\+Media\+Options}}\& options)} method until the S\+DK triggers this callback. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae643c9dbf94360a23a8b3a56c93f90bc}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae643c9dbf94360a23a8b3a56c93f90bc}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onActiveSpeaker@{onActiveSpeaker}}
\index{onActiveSpeaker@{onActiveSpeaker}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onActiveSpeaker()}{onActiveSpeaker()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Active\+Speaker}



Occurs when the most active remote speaker is detected. 

After a successful call of {\ttfamily enable\+Audio\+Volume\+Indication}, the S\+DK continuously detects which remote user has the loudest volume. During the current period, the remote user whose volume is detected as the loudest for the most times, is the most active user. When the number of users is no less than two and an active remote speaker exists, the S\+DK triggers this callback and reports the {\ttfamily uid} of the most active remote speaker.
\begin{DoxyItemize}
\item If the most active remote speaker is always the same user, the S\+DK triggers the {\ttfamily on\+Active\+Speaker} callback only once.
\item If the most active remote speaker changes to another user, the S\+DK triggers this callback again and reports the {\ttfamily uid} of the new active remote speaker.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the most active speaker. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a62ebb50a33d02175cddb4c655465cf20}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a62ebb50a33d02175cddb4c655465cf20}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onClientRoleChanged@{onClientRoleChanged}}
\index{onClientRoleChanged@{onClientRoleChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onClientRoleChanged()}{onClientRoleChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Client\+Role\+Changed}



Occurs when the user role or the audience latency level changes. 

Call timing\+: This callback will be triggered in any of the following situations\+:
\begin{DoxyItemize}
\item Calling {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role)} or {\ttfamily set\+Client\+Role(C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE role, const \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}}\& options)} to set the user role or audience latency level {\bfseries{after joining a channel}}
\item Calling {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role)} or {\ttfamily set\+Client\+Role(C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE role, const \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}}\& options)} and set the user role to {\ttfamily A\+U\+D\+I\+E\+N\+CE} {\bfseries{before joining a channel}}.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
This callback will not be triggered when you call {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role)} or {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role, const Client\+Role\+Options\& options)} and set the user role to {\ttfamily B\+R\+O\+A\+D\+C\+A\+S\+T\+ER} {\bfseries{before joining a channel}}.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em old\+Role} & Role that the user switches from\+: {\ttfamily C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em new\+Role} & Role that the user switches to\+: {\ttfamily C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em new\+Role\+Options} & Since v4.\+1.\+0 Properties of the role that the user switches to. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_client_role_options}{Client\+Role\+Options}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7f7424742197df2e199981b7e0e50f4f}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a7f7424742197df2e199981b7e0e50f4f}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onClientRoleChangeFailed@{onClientRoleChangeFailed}}
\index{onClientRoleChangeFailed@{onClientRoleChangeFailed}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onClientRoleChangeFailed()}{onClientRoleChangeFailed()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Client\+Role\+Change\+Failed}



Occurs when switching a user role fails. 

This callback informs you about the reason for failing to switching and your current user role. Call timing\+: The S\+DK triggers this callback when the local user calls {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role)} or {\ttfamily set\+Client\+Role(\+C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+P\+E role, const Client\+Role\+Options\& options)} after joining a channel to switch the user role but the switching fails.


\begin{DoxyParams}{Parameters}
{\em reason} & The reason for a user role switch failure. See {\ttfamily C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+C\+H\+A\+N\+G\+E\+\_\+\+F\+A\+I\+L\+E\+D\+\_\+\+R\+E\+A\+S\+ON}. \\
\hline
{\em current\+Role} & Current user role. See {\ttfamily C\+L\+I\+E\+N\+T\+\_\+\+R\+O\+L\+E\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2aee5d99c0de8fa2f5cd71f5aa5f7128}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a2aee5d99c0de8fa2f5cd71f5aa5f7128}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteAudioTransportStats@{onRemoteAudioTransportStats}}
\index{onRemoteAudioTransportStats@{onRemoteAudioTransportStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteAudioTransportStats()}{onRemoteAudioTransportStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Audio\+Transport\+Stats}



Reports the transport-\/layer statistics of each remote audio stream. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000043}{Deprecated}}]Use {\ttfamily on\+Remote\+Audio\+Stats} instead.\end{DoxyRefDesc}


This callback reports the transport-\/layer statistics, such as the packet loss rate and network time delay after the local user receives an audio packet from a remote user. During a call, when the user receives the audio packet sent by the remote user, the callback is triggered every 2 seconds.


\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user sending the audio streams. \\
\hline
{\em delay} & The network delay (ms) from the remote user to the receiver. \\
\hline
{\em lost} & The packet loss rate (\%) of the audio packet sent from the remote user to the receiver. \\
\hline
{\em rx\+K\+Bitrate} & The bitrate of the received audio (Kbps). \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aae6eb5cba66f6314ee806bc9be253ff6}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aae6eb5cba66f6314ee806bc9be253ff6}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRemoteVideoTransportStats@{onRemoteVideoTransportStats}}
\index{onRemoteVideoTransportStats@{onRemoteVideoTransportStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRemoteVideoTransportStats()}{onRemoteVideoTransportStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Remote\+Video\+Transport\+Stats}



Reports the transport-\/layer statistics of each remote video stream. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000044}{Deprecated}}]Use {\ttfamily on\+Remote\+Video\+Stats} instead.\end{DoxyRefDesc}


This callback reports the transport-\/layer statistics, such as the packet loss rate and network time delay after the local user receives a video packet from a remote user. During a call, when the user receives the video packet sent by the remote user/host, the callback is triggered every 2 seconds.


\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user sending the video packets. \\
\hline
{\em delay} & The network delay (ms) from the sender to the receiver. \\
\hline
{\em lost} & The packet loss rate (\%) of the video packet sent from the remote user. \\
\hline
{\em rx\+K\+Bit\+Rate} & The bitrate of the received video (Kbps). \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af409b2e721d345a65a2c600cea2f5eb4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af409b2e721d345a65a2c600cea2f5eb4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onConnectionStateChanged@{onConnectionStateChanged}}
\index{onConnectionStateChanged@{onConnectionStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onConnectionStateChanged()}{onConnectionStateChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Connection\+State\+Changed}



Occurs when the network connection state changes. 

When the network connection state changes, the S\+DK triggers this callback and reports the current connection state and the reason for the change.


\begin{DoxyParams}{Parameters}
{\em state} & The current connection state. See {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em reason} & The reason for a connection state change. See {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+C\+H\+A\+N\+G\+E\+D\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af71617b59ba8564963dfdd642f4e36a4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af71617b59ba8564963dfdd642f4e36a4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onNetworkTypeChanged@{onNetworkTypeChanged}}
\index{onNetworkTypeChanged@{onNetworkTypeChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onNetworkTypeChanged()}{onNetworkTypeChanged()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Network\+Type\+Changed}



Occurs when the local network type changes. 

This callback occurs when the connection state of the local user changes. You can get the connection state and reason for the state change in this callback. When the network connection is interrupted, this callback indicates whether the interruption is caused by a network type change or poor network conditions.


\begin{DoxyParams}{Parameters}
{\em type} & The type of the local network connection. See {\ttfamily N\+E\+T\+W\+O\+R\+K\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad64b65c8bbb78624316770b01f2ee9bd}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad64b65c8bbb78624316770b01f2ee9bd}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onEncryptionError@{onEncryptionError}}
\index{onEncryptionError@{onEncryptionError}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onEncryptionError()}{onEncryptionError()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Encryption\+Error}



Reports the built-\/in encryption errors. 

When encryption is enabled by calling {\ttfamily enable\+Encryption}, the S\+DK triggers this callback if an error occurs in encryption or decryption on the sender or the receiver side.


\begin{DoxyParams}{Parameters}
{\em error\+Type} & Details about the error type. See {\ttfamily E\+N\+C\+R\+Y\+P\+T\+I\+O\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+T\+Y\+PE}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f97ca5105b02f4381af3603d5a87ccf}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a5f97ca5105b02f4381af3603d5a87ccf}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUploadLogResult@{onUploadLogResult}}
\index{onUploadLogResult@{onUploadLogResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUploadLogResult()}{onUploadLogResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Upload\+Log\+Result}

Reports the user log upload result 
\begin{DoxyParams}{Parameters}
{\em request\+Id} & Request\+Id of the upload \\
\hline
{\em success} & Is upload success \\
\hline
{\em reason} & Reason of the upload, 0\+: OK, 1 Network Error, 2 Server Error. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad086cc4d8e5555cc75a0ab264c16d5ff}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ad086cc4d8e5555cc75a0ab264c16d5ff}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserInfoUpdated@{onUserInfoUpdated}}
\index{onUserInfoUpdated@{onUserInfoUpdated}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserInfoUpdated()}{onUserInfoUpdated()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Info\+Updated}



Occurs when the S\+DK gets the user ID and user account of the remote user. 

After a remote user joins the channel, the S\+DK gets the U\+ID and user account of the remote user, caches them in a mapping table object, and triggers this callback on the local client.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em info} & The \mbox{\hyperlink{structagora_1_1rtc_1_1_user_info}{User\+Info}} object that contains the user ID and user account of the remote user. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_user_info}{User\+Info}}} for details. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acbd8141eb8257ec5e1c24c2fd978c229}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_acbd8141eb8257ec5e1c24c2fd978c229}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onUserAccountUpdated@{onUserAccountUpdated}}
\index{onUserAccountUpdated@{onUserAccountUpdated}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onUserAccountUpdated()}{onUserAccountUpdated()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+User\+Account\+Updated}

Occurs when the user account is updated.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em user\+Account} & The user account. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae3f517bd166a9e34aa77f9fbf137a7b9}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae3f517bd166a9e34aa77f9fbf137a7b9}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioSubscribeStateChanged@{onAudioSubscribeStateChanged}}
\index{onAudioSubscribeStateChanged@{onAudioSubscribeStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioSubscribeStateChanged()}{onAudioSubscribeStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Audio\+Subscribe\+State\+Changed}



Occurs when the audio subscribing state changes. 


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em uid} & The user ID of the remote user. \\
\hline
{\em old\+State} & The previous subscribing status. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em new\+State} & The current subscribing status. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em elapse\+Since\+Last\+State} & The time elapsed (ms) from the previous state to the current state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aebedc2b484b4e6b9f5d9a28aea997d65}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aebedc2b484b4e6b9f5d9a28aea997d65}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoSubscribeStateChanged@{onVideoSubscribeStateChanged}}
\index{onVideoSubscribeStateChanged@{onVideoSubscribeStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoSubscribeStateChanged()}{onVideoSubscribeStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Video\+Subscribe\+State\+Changed}



Occurs when the video subscribing state changes. 


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em uid} & The user ID of the remote user. \\
\hline
{\em old\+State} & The previous subscribing status. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em new\+State} & The current subscribing status. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+S\+U\+B\+S\+C\+R\+I\+B\+E\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em elapse\+Since\+Last\+State} & The time elapsed (ms) from the previous state to the current state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af5188bdc817fa62aac51b3dc627dfb64}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af5188bdc817fa62aac51b3dc627dfb64}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioPublishStateChanged@{onAudioPublishStateChanged}}
\index{onAudioPublishStateChanged@{onAudioPublishStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioPublishStateChanged()}{onAudioPublishStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Audio\+Publish\+State\+Changed}



Occurs when the audio publishing state changes. 


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em old\+State} & The previous publishing state. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em new\+State} & The current publishing stat. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em elapse\+Since\+Last\+State} & The time elapsed (ms) from the previous state to the current state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae7b1f0d07f6c601717e38b101eda9d6c}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ae7b1f0d07f6c601717e38b101eda9d6c}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoPublishStateChanged@{onVideoPublishStateChanged}}
\index{onVideoPublishStateChanged@{onVideoPublishStateChanged}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoPublishStateChanged()}{onVideoPublishStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Video\+Publish\+State\+Changed}



Occurs when the video publishing state changes. 


\begin{DoxyParams}{Parameters}
{\em channel} & The channel name. \\
\hline
{\em source} & The type of the video source. See {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+T\+Y\+PE}. \\
\hline
{\em old\+State} & The previous publishing state. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em new\+State} & The current publishing stat. See {\ttfamily S\+T\+R\+E\+A\+M\+\_\+\+P\+U\+B\+L\+I\+S\+H\+\_\+\+S\+T\+A\+TE}. \\
\hline
{\em elapse\+Since\+Last\+State} & The time elapsed (ms) from the previous state to the current state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6b8144c5a1591e06d6d854f703e97648}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a6b8144c5a1591e06d6d854f703e97648}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onSnapshotTaken@{onSnapshotTaken}}
\index{onSnapshotTaken@{onSnapshotTaken}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onSnapshotTaken()}{onSnapshotTaken()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Snapshot\+Taken}



Reports the result of taking a video snapshot. 

After a successful {\ttfamily take\+Snapshot(uid\+\_\+t uid, const char$\ast$ file\+Path)} method call, the S\+DK triggers this callback to report whether the snapshot is successfully taken as well as the details for the snapshot taken.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. One {\ttfamily uid} of 0 indicates the local user. \\
\hline
{\em file\+Path} & The local path of the snapshot. \\
\hline
{\em width} & The width (px) of the snapshot. \\
\hline
{\em height} & The height (px) of the snapshot. \\
\hline
{\em err\+Code} & The message that confirms success or gives the reason why the snapshot is not successfully taken\+:
\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure\+:
\begin{DoxyItemize}
\item -\/1\+: The S\+DK fails to write data to a file or encode a J\+P\+EG image.
\item -\/2\+: The S\+DK does not find the video stream of the specified user within one second after the {\ttfamily take\+Snapshot(uid\+\_\+t uid, const char$\ast$ file\+Path)} method call succeeds. The possible reasons are\+: local capture stops, remote end stops publishing, or video data processing is blocked.
\item -\/3\+: Calling the {\ttfamily take\+Snapshot(uid\+\_\+t uid, const char$\ast$ file\+Path)} method too frequently. 
\end{DoxyItemize}
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af157b707afd93a5b0ab39569e46a6cd4}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_af157b707afd93a5b0ab39569e46a6cd4}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onVideoRenderingTracingResult@{onVideoRenderingTracingResult}}
\index{onVideoRenderingTracingResult@{onVideoRenderingTracingResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onVideoRenderingTracingResult()}{onVideoRenderingTracingResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Video\+Rendering\+Tracing\+Result}



Video frame rendering event callback. 

After calling the {\ttfamily start\+Media\+Rendering\+Tracing} method or joining a channel, the S\+DK triggers this callback to report the events of video frame rendering and the indicators during the rendering process. Developers can optimize the indicators to improve the efficiency of the first video frame rendering.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em current\+Event} & The current video frame rendering event. See {\ttfamily M\+E\+D\+I\+A\+\_\+\+T\+R\+A\+C\+E\+\_\+\+E\+V\+E\+NT}. \\
\hline
{\em tracing\+Info} & The indicators during the video frame rendering process. Developers need to reduce the value of indicators as much as possible in order to improve the efficiency of the first video frame rendering. See {\ttfamily \mbox{\hyperlink{structagora_1_1rtc_1_1_video_rendering_tracing_info}{Video\+Rendering\+Tracing\+Info}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aee8751fc4c7ec335cc94b9d6b3df071a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_aee8751fc4c7ec335cc94b9d6b3df071a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onSetRtmFlagResult@{onSetRtmFlagResult}}
\index{onSetRtmFlagResult@{onSetRtmFlagResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onSetRtmFlagResult()}{onSetRtmFlagResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Set\+Rtm\+Flag\+Result}

Occurs when the S\+DK receives R\+TM setting change response.

@technical preview 
\begin{DoxyParams}{Parameters}
{\em code} & The error code. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4de055f77b40ca2aeab0d9132cbffc2a}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4de055f77b40ca2aeab0d9132cbffc2a}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onTranscodedStreamLayoutInfo@{onTranscodedStreamLayoutInfo}}
\index{onTranscodedStreamLayoutInfo@{onTranscodedStreamLayoutInfo}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onTranscodedStreamLayoutInfo()}{onTranscodedStreamLayoutInfo()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Transcoded\+Stream\+Layout\+Info}



Occurs when the local user receives a mixed video stream carrying layout information. 

When the local user receives a mixed video stream sent by the video mixing server for the first time, or when there is a change in the layout information of the mixed stream, the S\+DK triggers this callback, reporting the layout information of each sub-\/video stream within the mixed video stream.

\begin{DoxyNote}{Note}
This callback is for Android and i\+OS only.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & User ID who published this mixed video stream. \\
\hline
{\em width} & Width (px) of the mixed video stream. \\
\hline
{\em height} & Heitht (px) of the mixed video stream. \\
\hline
{\em layout\+Count} & The number of layout information in the mixed video stream. \\
\hline
{\em layoutlist} & Layout information of a specific sub-\/video stream within the mixed stream. See {\ttfamily \mbox{\hyperlink{structagora_1_1_video_layout}{Video\+Layout}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4a9e9a3c7d3a058191aeac328620aab9}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a4a9e9a3c7d3a058191aeac328620aab9}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onAudioMetadataReceived@{onAudioMetadataReceived}}
\index{onAudioMetadataReceived@{onAudioMetadataReceived}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onAudioMetadataReceived()}{onAudioMetadataReceived()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Audio\+Metadata\+Received}

Occurs when the S\+DK receives audio metadata. \begin{DoxySince}{Since}
v4.\+3.\+1 
\end{DoxySince}

\begin{DoxyParams}{Parameters}
{\em uid} & ID of the remote user. \\
\hline
{\em metadata} & The pointer of metadata \\
\hline
{\em length} & Size of metadata @technical preview \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3393ed4d85a160b57abd4ca7bc13002f}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_a3393ed4d85a160b57abd4ca7bc13002f}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onMultipathStats@{onMultipathStats}}
\index{onMultipathStats@{onMultipathStats}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onMultipathStats()}{onMultipathStats()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Multipath\+Stats}



Report the multipath transmission statistics. 

\begin{DoxyPostcond}{Postcondition}
This callback is triggered after you set {\ttfamily enable\+Multipath} to {\ttfamily true} to enable multipath transmission.
\end{DoxyPostcond}
\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}

\begin{DoxyParams}{Parameters}
{\em stats} & The multipath statistics. See the \mbox{\hyperlink{structagora_1_1rtc_1_1_multipath_stats}{Multipath\+Stats}} structure for details. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab02a474e317eb85459d79e5cf2296038}\label{classagora_1_1rtc_1_1_i_rtc_engine_event_handler_ex_ab02a474e317eb85459d79e5cf2296038}} 
\index{agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}!onRenewTokenResult@{onRenewTokenResult}}
\index{onRenewTokenResult@{onRenewTokenResult}!agora::rtc::IRtcEngineEventHandlerEx@{agora::rtc::IRtcEngineEventHandlerEx}}
\doxysubsubsection{\texorpdfstring{onRenewTokenResult()}{onRenewTokenResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Rtc\+Engine\+Event\+Handler\+::on\+Renew\+Token\+Result}



Callback for {\ttfamily renew\+Token} call result. 

\begin{DoxySince}{Since}
4.\+6.\+0
\end{DoxySince}
This callback is triggered after the user calls the {\ttfamily renew\+Token} method to update the token, and is used to notify the app of the result.


\begin{DoxyParams}{Parameters}
{\em token} & Token. \\
\hline
{\em code} & Error code. See {\ttfamily R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+R\+R\+O\+R\+\_\+\+C\+O\+DE}. \\
\hline
\end{DoxyParams}
