\hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex}{}\doxysection{io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex Class Reference}
\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex}\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
Inheritance diagram for io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac9137abd4b8177fbf577cd66ee4e4329}{mute\+Local\+Audio\+Stream\+Ex}} (boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes publishing the local audio stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2114ef211171b8b1062e16787776f937}{mute\+Local\+Video\+Stream\+Ex}} (boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes publishing the local video stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5cdb9c1af79a710f3d926a1e9e463950}{mute\+All\+Remote\+Audio\+Streams\+Ex}} (boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes subscribing to the audio streams of all remote users. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a27ad08c949fe458ecda9b8069220f102}{mute\+All\+Remote\+Video\+Streams\+Ex}} (boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes subscribing to the video streams of all remote users. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9ec85048a0db3bfa3b4eda4993ac8890}{mute\+Remote\+Audio\+Stream\+Ex}} (int uid, boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes receiving the audio stream of a specified user. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac67b40738cca221cca37ca1660ee3641}{mute\+Remote\+Video\+Stream\+Ex}} (int uid, boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops or resumes receiving the video stream of a specified user. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a97c9221a8f783c06c0ddca56fe1b79f4}{set\+Remote\+Video\+Stream\+Type\+Ex}} (int uid, Constants.\+Video\+Stream\+Type stream\+Type, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the video stream type to subscribe to. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9e17e1b311520cf8cab4cab3b110f23f}{set\+Remote\+Video\+Stream\+Type\+Ex}} (int uid, int stream\+Type, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the video stream type to subscribe to. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a882d05a67eaae9b3d1bad20c59a9b2b6}{set\+High\+Priority\+User\+List\+Ex}} (int\mbox{[}$\,$\mbox{]} uid\+List, int option, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a191b2922ff292efca015ad7b7b35c107}{set\+Subscribe\+Audio\+Blocklist\+Ex}} (int\mbox{[}$\,$\mbox{]} uid\+List, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the blocklist of subscriptions for audio streams. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab5742f6e2a4ffefd8518d3b5a0f7993f}{set\+Subscribe\+Audio\+Allowlist\+Ex}} (int\mbox{[}$\,$\mbox{]} uid\+List, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the allowlist of subscriptions for audio streams. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a695948f22d21d55378c4ea8f70116c2d}{set\+Subscribe\+Video\+Blocklist\+Ex}} (int\mbox{[}$\,$\mbox{]} uid\+List, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the blocklist of subscriptions for video streams. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a168f0783b4011b6f087c6b19f89eb84c}{set\+Subscribe\+Video\+Allowlist\+Ex}} (int\mbox{[}$\,$\mbox{]} uid\+List, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the allowlist of subscriptions for video streams. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a88604d27a994631c157b490de22508be}{set\+Remote\+Render\+Mode\+Ex}} (int uid, int render\+Mode, int mirror\+Mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the video display mode of a specified remote user. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ae03477ed2820595d327879d2a0123ecf}{setup\+Remote\+Video\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_canvas}{Video\+Canvas}} remote, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Initializes the video view of a remote user. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaeb62de5bfe53cdedbe544718dcedb22}{set\+Video\+Encoder\+Configuration\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration}{Video\+Encoder\+Configuration}} config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the video encoder configuration. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab0d85dea975058b632f66fa1dec4990c}{update\+Channel\+Media\+Options\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Updates the channel media options after joining the channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2924ae91a7e4d0e28f6fb2670333d229}{join\+Channel\+Ex}} (String token, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} event\+Handler)
\begin{DoxyCompactList}\small\item\em Joins a channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0ca89d99341220118578114e1e30f974}{leave\+Channel\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Leaves a channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a50d6557d97deaa7019300b1665af3b70}{leave\+Channel\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}} options)
\begin{DoxyCompactList}\small\item\em Sets channel options and leaves the channel. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a76a90f9e0b743c7a06b68c8f03c502f8}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a76a90f9e0b743c7a06b68c8f03c502f8}} 
abstract int {\bfseries leave\+Channel\+With\+User\+Account\+Ex} (String channel\+Id, String user\+Account)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a09c6ebe1b83df78053bc09775ce621af}{leave\+Channel\+With\+User\+Account\+Ex}} (String channel\+Id, String user\+Account, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}} options)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6460a5ca7dd2fb4082f3468977ceb88a}{enable\+Dual\+Stream\+Mode\+Ex}} (boolean enabled, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Enables or disables dual-\/stream mode on the sender side. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaf2964b55e09b69c302c3dfa90f584f8}{set\+Dual\+Stream\+Mode\+Ex}} (Constants.\+Simulcast\+Stream\+Mode mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the dual-\/stream mode on the sender side. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a978186c326162928f832798fc77b9ab2}{set\+Simulcast\+Config\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_config}{Simulcast\+Config}} simulcast\+Config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the simulcast video stream configuration. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa5dc092764403b67a7b2e4d44498426f}{get\+Connection\+State\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Gets the current connection state of the S\+DK. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad2eafbbadf02292d3f91bd6594903889}{send\+Custom\+Report\+Message\+Ex}} (String id, String category, String event, String label, int value, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Agora supports reporting and analyzing customized messages. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afbd77e494546503282d926a34ad85c5a}{send\+Stream\+Message\+Ex}} (int stream\+Id, byte\mbox{[}$\,$\mbox{]} message, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sends data stream messages. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3176642c69a659c9dbfd3de738ef9d89}{send\+Rdt\+Message\+Ex}} (int uid, int type, byte\mbox{[}$\,$\mbox{]} message, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Send Reliable message to remote uid in channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1535da02d9d28486b1af919600d7e174}{send\+Media\+Control\+Message\+Ex}} (int uid, byte\mbox{[}$\,$\mbox{]} message, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Send media control message. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f29396994d5885d64fbb8b6b8f9361f}{create\+Data\+Stream\+Ex}} (boolean reliable, boolean ordered, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Creates a data stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}{create\+Data\+Stream\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_data_stream_config}{Data\+Stream\+Config}} config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Creates a data stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aed8d2a40abdbc2c7ed2d4c83a5ea392e}{join\+Channel\+With\+User\+Account\+Ex}} (String token, String channel\+Id, String user\+Account, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} event\+Handler)
\begin{DoxyCompactList}\small\item\em Join a channel using a user account and token, and set the media options. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6834e28cdc3ab7800fd4f3778c38b5ea}{get\+User\+Info\+By\+User\+Account\+Ex}} (String user\+Account, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}} user\+Info, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Gets the user information by passing in the user account. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aefbb8bdef83eba14b164ee6491b4b219}{get\+User\+Info\+By\+Uid\+Ex}} (int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}} user\+Info, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Gets the user information by passing in the user ID. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a514e60eaced00e99d366fa2905b0b544}{adjust\+Recording\+Signal\+Volume\+Ex}} (int volume, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a55af6551b33981a9465db16aed6abaf7}{mute\+Recording\+Signal\+Ex}} (boolean muted, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af57e2ce82585058fa4c7a31559f222f7}{adjust\+User\+Playback\+Signal\+Volume\+Ex}} (int uid, int volume, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Adjusts the playback signal volume of a specified remote user. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aba45908b4f516c481507cefb5aee82e5}{set\+Remote\+Voice\+Position\+Ex}} (int uid, double pan, double gain, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Sets the 2D position (the position on the horizontal plane) of the remote user\textquotesingle{}s voice. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad876398def5a38a29bad7f66085cdac4}{set\+Remote\+Video\+Subscription\+Options\+Ex}} (int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_subscription_options}{Video\+Subscription\+Options}} options, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} rtc\+Connection)
\begin{DoxyCompactList}\small\item\em Sets options for subscribing to remote video streams. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3ee3aba2c1b7596b1a70eb38b1533df0}{set\+Remote\+User\+Spatial\+Audio\+Params\+Ex}} (int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_spatial_audio_params}{Spatial\+Audio\+Params}} params, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afa97cb95d227e493ee984540fd7a6f08}{add\+Video\+Watermark\+Ex}} (String watermark\+Url, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_options}{Watermark\+Options}} options, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Adds a watermark image to the local video. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6fecb771abc6b0af09a6edf348796a6e}{add\+Video\+Watermark\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_config}{Watermark\+Config}} config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Adds a watermark image to the local video. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3394ccd6296c1661547fbab600d4898e}{remove\+Video\+Watermark\+Ex}} (String id, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Removes the specified watermark image from the local or remote video stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afd661370012517f3766611b7f8b5c1b9}{clear\+Video\+Watermark\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Removes the watermark image from the video stream. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad7df291a75259c4a2d853d82514fac97}{enable\+Audio\+Volume\+Indication\+Ex}} (int interval, int smooth, boolean report\+Vad, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Enables the reporting of users\textquotesingle{} volume indication. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a7bf2d7030aadd312a428a96638f20d72}{take\+Snapshot\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int uid, String file\+Path)
\begin{DoxyCompactList}\small\item\em Takes a snapshot of a video stream using connection ID. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2f3055802ce7638190a8f850e85a3435}{take\+Snapshot\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_snapshot_config}{Snapshot\+Config}} config)
\begin{DoxyCompactList}\small\item\em Gets a video screenshot of the specified observation point using the connection ID. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aef9ce5ec5c27aa54b2ea035d9df914e0}{enable\+Content\+Inspect\+Ex}} (boolean enabled, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_content_inspect_config}{Content\+Inspect\+Config}} config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Enables or disables video screenshot and upload. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab9d2bf4f343f8c75fe76f7f618f2ef10}{start\+Rtmp\+Stream\+Without\+Transcoding\+Ex}} (String url, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Starts pushing media streams to a C\+DN without transcoding. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a159956e874ad3f5dcf4e4a1c44b908dc}{start\+Rtmp\+Stream\+With\+Transcoding\+Ex}} (String url, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1live_1_1_live_transcoding}{Live\+Transcoding}} transcoding, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Starts Media Push and sets the transcoding configuration. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a13e7b9caa41e9ed6e9586ddc1da030cb}{update\+Rtmp\+Transcoding\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1live_1_1_live_transcoding}{Live\+Transcoding}} transcoding, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Updates the transcoding configuration. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa1731922142ba7eaa61b7aa97bef2784}{stop\+Rtmp\+Stream\+Ex}} (String url, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops pushing media streams to a C\+DN. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a86edd01e9fb8f751dc7d48665ea52634}{start\+Or\+Update\+Channel\+Media\+Relay\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration}{Channel\+Media\+Relay\+Configuration}} channel\+Media\+Relay\+Configuration, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Starts relaying media streams across channels or updates channels for media relay. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aeb48a3c71723e304045d1d562ca18a00}{stop\+Channel\+Media\+Relay\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Stops the media stream relay. Once the relay stops, the host quits all the target channels. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af576bbd8060d7d57e49d35b4ccd13e42}{pause\+All\+Channel\+Media\+Relay\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Pauses the media stream relay to all target channels. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a12988efe2bea6ff85092cca8e095a5e0}{resume\+All\+Channel\+Media\+Relay\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Resumes the media stream relay to all target channels. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab2becbdbf8d6f4d8ad71cb9b6fbde383}{start\+Media\+Rendering\+Tracing\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Enables tracing the video frame rendering process. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a769d9882314dd483fb8fe7b38122306c}{set\+Parameters\+Ex}} (String parameters, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract String \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1ff3ebf538b1d5f6cb9048b037b16afc}{get\+Call\+Id\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Gets the call ID with the connection ID. \end{DoxyCompactList}\item 
abstract void \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a51bae476930846d0dc9181576ab5201d}{add\+Handler\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} handler, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract void \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a130d640f1bcea05e066593d222373c6c}{remove\+Handler\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} handler, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a00153b70b6e0a971e1cd7bffa2efbf55}{enable\+Encryption\+Ex}} (boolean enabled, Encryption\+Config config, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\begin{DoxyCompactList}\small\item\em Enables or disables the built-\/in encryption. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a23ddd10d4883c3e89c941eded0da649f}{send\+Audio\+Metadata\+Ex}} (byte\mbox{[}$\,$\mbox{]} metadata, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)
\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab4e12b14581578f2c7559af6a48b4266}{preload\+Effect\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int sound\+Id, String file\+Path)
\begin{DoxyCompactList}\small\item\em Preloads a specified sound effect to the channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f7d7f080cad50d1df706bfefc276588}{preload\+Effect\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int sound\+Id, String file\+Path, int start\+Pos)
\begin{DoxyCompactList}\small\item\em Preloads a specified sound effect to a channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a102a286007985ae08147cddfef4a44e8}{play\+Effect\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int sound\+Id, String file\+Path, int loop\+Count, double pitch, double pan, double gain, boolean publish)
\begin{DoxyCompactList}\small\item\em Plays a specified sound effect in the channel. \end{DoxyCompactList}\item 
abstract int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5ebb4cfb6317123524dee576bd597fc9}{play\+Effect\+Ex}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, int sound\+Id, String file\+Path, int loop\+Count, double pitch, double pan, double gain, boolean publish, int start\+Pos)
\begin{DoxyCompactList}\small\item\em Plays a specified sound effect in a channel. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac9137abd4b8177fbf577cd66ee4e4329}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac9137abd4b8177fbf577cd66ee4e4329}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteLocalAudioStreamEx@{muteLocalAudioStreamEx}}
\index{muteLocalAudioStreamEx@{muteLocalAudioStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteLocalAudioStreamEx()}{muteLocalAudioStreamEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+Local\+Audio\+Stream\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes publishing the local audio stream. 

A successful call of this method triggers the {\ttfamily on\+User\+Mute\+Audio} and {\ttfamily on\+Remote\+Audio\+State\+Changed} callbacks on the remote client.

\begin{DoxyNote}{Note}
This method does not affect any ongoing audio recording, because it does not disable the audio capture device.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em muted} & Whether to stop publishing the local audio stream\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stops publishing the local audio stream.
\item {\ttfamily false}\+: (Default) Resumes publishing the local audio stream. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2114ef211171b8b1062e16787776f937}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2114ef211171b8b1062e16787776f937}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteLocalVideoStreamEx@{muteLocalVideoStreamEx}}
\index{muteLocalVideoStreamEx@{muteLocalVideoStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteLocalVideoStreamEx()}{muteLocalVideoStreamEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+Local\+Video\+Stream\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes publishing the local video stream. 

A successful call of this method triggers the {\ttfamily on\+User\+Mute\+Video} callback on the remote client.

\begin{DoxyNote}{Note}
This method does not affect any ongoing video recording, because it does not disable the camera.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em muted} & Whether to stop publishing the local video stream.
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stop publishing the local video stream.
\item {\ttfamily false}\+: (Default) Publish the local video stream. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5cdb9c1af79a710f3d926a1e9e463950}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5cdb9c1af79a710f3d926a1e9e463950}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteAllRemoteAudioStreamsEx@{muteAllRemoteAudioStreamsEx}}
\index{muteAllRemoteAudioStreamsEx@{muteAllRemoteAudioStreamsEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteAllRemoteAudioStreamsEx()}{muteAllRemoteAudioStreamsEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+All\+Remote\+Audio\+Streams\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes subscribing to the audio streams of all remote users. 

After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including the ones join the channel subsequent to this call.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Call this method after joining a channel.
\item If you do not want to subscribe the audio streams of remote users before joining a channel, you can set {\ttfamily auto\+Subscribe\+Audio} as {\ttfamily false} when calling {\ttfamily join\+Channel(String token, String channel\+Id, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options)}.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em muted} & Whether to stop subscribing to the audio streams of all remote users\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stops subscribing to the audio streams of all remote users.
\item {\ttfamily false}\+: (Default) Subscribes to the audio streams of all remote users by default. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a27ad08c949fe458ecda9b8069220f102}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a27ad08c949fe458ecda9b8069220f102}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteAllRemoteVideoStreamsEx@{muteAllRemoteVideoStreamsEx}}
\index{muteAllRemoteVideoStreamsEx@{muteAllRemoteVideoStreamsEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteAllRemoteVideoStreamsEx()}{muteAllRemoteVideoStreamsEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+All\+Remote\+Video\+Streams\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes subscribing to the video streams of all remote users. 

After successfully calling this method, the local user stops or resumes subscribing to the video streams of all remote users, including all subsequent users.


\begin{DoxyParams}{Parameters}
{\em muted} & Whether to stop subscribing to the video streams of all remote users.
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stop subscribing to the video streams of all remote users.
\item {\ttfamily false}\+: (Default) Subscribe to the video streams of all remote users by default. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9ec85048a0db3bfa3b4eda4993ac8890}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9ec85048a0db3bfa3b4eda4993ac8890}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteRemoteAudioStreamEx@{muteRemoteAudioStreamEx}}
\index{muteRemoteAudioStreamEx@{muteRemoteAudioStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteRemoteAudioStreamEx()}{muteRemoteAudioStreamEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+Remote\+Audio\+Stream\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes receiving the audio stream of a specified user. 

This method is used to stops or resumes receiving the audio stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.


\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the specified user. \\
\hline
{\em muted} & Whether to stop receiving the audio stream of the specified user\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stop receiving the audio stream of the specified user.
\item {\ttfamily false}\+: (Default) Resume receiving the audio stream of the specified user. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac67b40738cca221cca37ca1660ee3641}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ac67b40738cca221cca37ca1660ee3641}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteRemoteVideoStreamEx@{muteRemoteVideoStreamEx}}
\index{muteRemoteVideoStreamEx@{muteRemoteVideoStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteRemoteVideoStreamEx()}{muteRemoteVideoStreamEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+Remote\+Video\+Stream\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops or resumes receiving the video stream of a specified user. 

This method is used to stop or resume receiving the video stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em muted} & Whether to stop receiving the video stream of the specified user\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Stop receiving the video stream of the specified user.
\item {\ttfamily false}\+: (Default) Resume receiving the video stream of the specified user. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a97c9221a8f783c06c0ddca56fe1b79f4}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a97c9221a8f783c06c0ddca56fe1b79f4}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteVideoStreamTypeEx@{setRemoteVideoStreamTypeEx}}
\index{setRemoteVideoStreamTypeEx@{setRemoteVideoStreamTypeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteVideoStreamTypeEx()}{setRemoteVideoStreamTypeEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+Video\+Stream\+Type\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{Constants.\+Video\+Stream\+Type}]{stream\+Type,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the video stream type to subscribe to. 

Depending on the default behavior of the sender and the specific settings when calling {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)}, the scenarios for the receiver calling this method are as follows\+:
\begin{DoxyItemize}
\item The S\+DK enables low-\/quality video stream adaptive mode ( {\ttfamily A\+U\+T\+O\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} ) on the sender side by default, meaning only the high-\/quality video stream is transmitted. Only the receiver with the role of the $\ast$$\ast$host$\ast$$\ast$can call this method to initiate a low-\/quality video stream request. Once the sender receives the request, it starts automatically sending the low-\/quality video stream. At this point, all users in the channel can call this method to switch to low-\/quality video stream subscription mode.
\item If the sender calls {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)} and sets {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (never send low-\/quality video stream), then calling this method will have no effect.
\item If the sender calls {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)} and sets {\ttfamily mode} to {\ttfamily E\+N\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (always send low-\/quality video stream), both the host and audience receivers can call this method to switch to low-\/quality video stream subscription mode. The S\+DK will dynamically adjust the size of the corresponding video stream based on the size of the video window to save bandwidth and computing resources. The default aspect ratio of the low-\/quality video stream is the same as that of the high-\/quality video stream. According to the current aspect ratio of the high-\/quality video stream, the system will automatically allocate the resolution, frame rate, and bitrate of the low-\/quality video stream.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
If the publisher has already called {\ttfamily set\+Dual\+Stream\+Mode\+Ex} and set {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (never send low-\/quality video stream), calling this method will not take effect, you should call {\ttfamily set\+Dual\+Stream\+Mode\+Ex} again on the sending end and adjust the settings.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em stream\+Type} & The video stream type, see {\ttfamily Video\+Stream\+Type}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9e17e1b311520cf8cab4cab3b110f23f}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9e17e1b311520cf8cab4cab3b110f23f}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteVideoStreamTypeEx@{setRemoteVideoStreamTypeEx}}
\index{setRemoteVideoStreamTypeEx@{setRemoteVideoStreamTypeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteVideoStreamTypeEx()}{setRemoteVideoStreamTypeEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+Video\+Stream\+Type\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{int}]{stream\+Type,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the video stream type to subscribe to. 

Depending on the default behavior of the sender and the specific settings when calling {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)}, the scenarios for the receiver calling this method are as follows\+:
\begin{DoxyItemize}
\item The S\+DK enables low-\/quality video stream adaptive mode ( {\ttfamily A\+U\+T\+O\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} ) on the sender side by default, meaning only the high-\/quality video stream is transmitted. Only the receiver with the role of the $\ast$$\ast$host$\ast$$\ast$can call this method to initiate a low-\/quality video stream request. Once the sender receives the request, it starts automatically sending the low-\/quality video stream. At this point, all users in the channel can call this method to switch to low-\/quality video stream subscription mode.
\item If the sender calls {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)} and sets {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (never send low-\/quality video stream), then calling this method will have no effect.
\item If the sender calls {\ttfamily set\+Dual\+Stream\+Mode(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_simulcast_stream_mode}{Constants.\+Simulcast\+Stream\+Mode}} mode, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}} stream\+Config)} and sets {\ttfamily mode} to {\ttfamily E\+N\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (always send low-\/quality video stream), both the host and audience receivers can call this method to switch to low-\/quality video stream subscription mode. The S\+DK will dynamically adjust the size of the corresponding video stream based on the size of the video window to save bandwidth and computing resources. The default aspect ratio of the low-\/quality video stream is the same as that of the high-\/quality video stream. According to the current aspect ratio of the high-\/quality video stream, the system will automatically allocate the resolution, frame rate, and bitrate of the low-\/quality video stream.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
If the publisher has already called {\ttfamily set\+Dual\+Stream\+Mode\+Ex} and set {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (never send low-\/quality video stream), calling this method will not take effect, you should call {\ttfamily set\+Dual\+Stream\+Mode\+Ex} again on the sending end and adjust the settings.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em stream\+Type} & The video stream type\+:
\begin{DoxyItemize}
\item 0\+: High-\/quality video stream.
\item 1\+: Low-\/quality video stream. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a882d05a67eaae9b3d1bad20c59a9b2b6}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a882d05a67eaae9b3d1bad20c59a9b2b6}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setHighPriorityUserListEx@{setHighPriorityUserListEx}}
\index{setHighPriorityUserListEx@{setHighPriorityUserListEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setHighPriorityUserListEx()}{setHighPriorityUserListEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+High\+Priority\+User\+List\+Ex (\begin{DoxyParamCaption}\item[{int\mbox{[}$\,$\mbox{]}}]{uid\+List,  }\item[{int}]{option,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Sets the high priority user list and related fallback option for the remotely subscribed video stream based on the network conditions in N\+A\+S\+A2.


\begin{DoxyParams}{Parameters}
{\em uid\+List} & The id list of high priority users. \\
\hline
{\em option} & The remote subscribe fallback option of high priority users. \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a191b2922ff292efca015ad7b7b35c107}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a191b2922ff292efca015ad7b7b35c107}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setSubscribeAudioBlocklistEx@{setSubscribeAudioBlocklistEx}}
\index{setSubscribeAudioBlocklistEx@{setSubscribeAudioBlocklistEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setSubscribeAudioBlocklistEx()}{setSubscribeAudioBlocklistEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Subscribe\+Audio\+Blocklist\+Ex (\begin{DoxyParamCaption}\item[{int\mbox{[}$\,$\mbox{]}}]{uid\+List,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the blocklist of subscriptions for audio streams. 

You can call this method to specify the audio streams of a user that you do not want to subscribe to.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item You can call this method either before or after joining a channel.
\item The blocklist is not affected by the setting in {\ttfamily mute\+Remote\+Audio\+Stream}, {\ttfamily mute\+All\+Remote\+Audio\+Streams}, and {\ttfamily auto\+Subscribe\+Audio} in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
\item If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid\+List} & The user ID list of users that you do not want to subscribe to. If you want to specify the audio streams of a user that you do not want to subscribe to, add the user ID in this list. If you want to remove a user from the blocklist, you need to call the {\ttfamily set\+Subscribe\+Audio\+Blocklist} method to update the user ID list; this means you only add the {\ttfamily uid} of users that you do not want to subscribe to in the new user ID list. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab5742f6e2a4ffefd8518d3b5a0f7993f}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab5742f6e2a4ffefd8518d3b5a0f7993f}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setSubscribeAudioAllowlistEx@{setSubscribeAudioAllowlistEx}}
\index{setSubscribeAudioAllowlistEx@{setSubscribeAudioAllowlistEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setSubscribeAudioAllowlistEx()}{setSubscribeAudioAllowlistEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Subscribe\+Audio\+Allowlist\+Ex (\begin{DoxyParamCaption}\item[{int\mbox{[}$\,$\mbox{]}}]{uid\+List,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the allowlist of subscriptions for audio streams. 

You can call this method to specify the audio streams of a user that you want to subscribe to.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item You can call this method either before or after joining a channel.
\item The allowlist is not affected by the setting in {\ttfamily mute\+Remote\+Audio\+Stream}, {\ttfamily mute\+All\+Remote\+Audio\+Streams} and {\ttfamily auto\+Subscribe\+Audio} in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
\item If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid\+List} & The user ID list of users that you want to subscribe to. If you want to specify the audio streams of a user for subscription, add the user ID in this list. If you want to remove a user from the allowlist, you need to call the {\ttfamily set\+Subscribe\+Audio\+Allowlist} method to update the user ID list; this means you only add the {\ttfamily uid} of users that you want to subscribe to in the new user ID list. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a695948f22d21d55378c4ea8f70116c2d}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a695948f22d21d55378c4ea8f70116c2d}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setSubscribeVideoBlocklistEx@{setSubscribeVideoBlocklistEx}}
\index{setSubscribeVideoBlocklistEx@{setSubscribeVideoBlocklistEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setSubscribeVideoBlocklistEx()}{setSubscribeVideoBlocklistEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Subscribe\+Video\+Blocklist\+Ex (\begin{DoxyParamCaption}\item[{int\mbox{[}$\,$\mbox{]}}]{uid\+List,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the blocklist of subscriptions for video streams. 

You can call this method to specify the video streams of a user that you do not want to subscribe to.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item You can call this method either before or after joining a channel.
\item The blocklist is not affected by the setting in {\ttfamily mute\+Remote\+Video\+Stream}, {\ttfamily mute\+All\+Remote\+Video\+Streams} and {\ttfamily auto\+Subscribe\+Audio} in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
\item If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid\+List} & The user ID list of users that you do not want to subscribe to. If you want to specify the video streams of a user that you do not want to subscribe to, add the user ID of that user in this list. If you want to remove a user from the blocklist, you need to call the {\ttfamily set\+Subscribe\+Video\+Blocklist} method to update the user ID list; this means you only add the {\ttfamily uid} of users that you do not want to subscribe to in the new user ID list. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a168f0783b4011b6f087c6b19f89eb84c}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a168f0783b4011b6f087c6b19f89eb84c}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setSubscribeVideoAllowlistEx@{setSubscribeVideoAllowlistEx}}
\index{setSubscribeVideoAllowlistEx@{setSubscribeVideoAllowlistEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setSubscribeVideoAllowlistEx()}{setSubscribeVideoAllowlistEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Subscribe\+Video\+Allowlist\+Ex (\begin{DoxyParamCaption}\item[{int\mbox{[}$\,$\mbox{]}}]{uid\+List,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the allowlist of subscriptions for video streams. 

You can call this method to specify the video streams of a user that you want to subscribe to.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item You can call this method either before or after joining a channel.
\item The allowlist is not affected by the setting in {\ttfamily mute\+Remote\+Video\+Stream}, {\ttfamily mute\+All\+Remote\+Video\+Streams} and {\ttfamily auto\+Subscribe\+Audio} in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
\item If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid\+List} & The user ID list of users that you want to subscribe to. If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the {\ttfamily set\+Subscribe\+Video\+Allowlist} method to update the user ID list; this means you only add the {\ttfamily uid} of users that you want to subscribe to in the new user ID list. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a88604d27a994631c157b490de22508be}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a88604d27a994631c157b490de22508be}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteRenderModeEx@{setRemoteRenderModeEx}}
\index{setRemoteRenderModeEx@{setRemoteRenderModeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteRenderModeEx()}{setRemoteRenderModeEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+Render\+Mode\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{int}]{render\+Mode,  }\item[{int}]{mirror\+Mode,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the video display mode of a specified remote user. 

After initializing the video view of a remote user, you can call this method to update its rendering and mirror modes. This method affects only the video view that the local user sees.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Call this method after initializing the remote view by calling the {\ttfamily setup\+Remote\+Video} method.
\item During a call, you can call this method as many times as necessary to update the display mode of the video view of a remote user.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em render\+Mode} & The video display mode of the remote user\+:
\begin{DoxyItemize}
\item R\+E\+N\+D\+E\+R\+\_\+\+M\+O\+D\+E\+\_\+\+H\+I\+D\+D\+EN (1)\+: Hidden mode. Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.
\item R\+E\+N\+D\+E\+R\+\_\+\+M\+O\+D\+E\+\_\+\+F\+IT (2)\+: Fit mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.
\item R\+E\+N\+D\+E\+R\+\_\+\+M\+O\+D\+E\+\_\+\+A\+D\+A\+P\+T\+I\+VE (3)\+: Adaptive mode. Deprecated\+: This enumerator is deprecated and not recommended for use. 
\end{DoxyItemize}\\
\hline
{\em mirror\+Mode} & The mirror mode of the remote user view\+:
\begin{DoxyItemize}
\item V\+I\+D\+E\+O\+\_\+\+M\+I\+R\+R\+O\+R\+\_\+\+M\+O\+D\+E\+\_\+\+A\+U\+TO (0)\+: The S\+DK determines whether to enable the mirror mode. If you use a front camera, the S\+DK enables the mirror mode by default; if you use a rear camera, the S\+DK disables the mirror mode by default.
\item V\+I\+D\+E\+O\+\_\+\+M\+I\+R\+R\+O\+R\+\_\+\+M\+O\+D\+E\+\_\+\+E\+N\+A\+B\+L\+ED (1)\+: Enable the mirroring mode of the local view.
\item V\+I\+D\+E\+O\+\_\+\+M\+I\+R\+R\+O\+R\+\_\+\+M\+O\+D\+E\+\_\+\+D\+I\+S\+A\+B\+L\+ED (2)\+: Disable the mirroring mode of the local view. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ae03477ed2820595d327879d2a0123ecf}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ae03477ed2820595d327879d2a0123ecf}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setupRemoteVideoEx@{setupRemoteVideoEx}}
\index{setupRemoteVideoEx@{setupRemoteVideoEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setupRemoteVideoEx()}{setupRemoteVideoEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+setup\+Remote\+Video\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_canvas}{Video\+Canvas}}}]{remote,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Initializes the video view of a remote user. 

This method initializes the video view of a remote stream on the local device. It affects only the video view that the local user sees. Call this method to bind the remote video stream to a video view and to set the rendering and mirror modes of the video view. The application specifies the uid of the remote video in the {\ttfamily Video\+Canvas} method before the remote user joins the channel. If the remote uid is unknown to the application, set it after the application receives the {\ttfamily on\+User\+Joined} callback. If the Video Recording function is enabled, the Video Recording Service joins the channel as a dummy client, causing other clients to also receive the {\ttfamily on\+User\+Joined} callback. Do not bind the dummy client to the application view because the dummy client does not send any video streams. To unbind the remote user from the view, set the {\ttfamily view} parameter to N\+U\+LL. Once the remote user leaves the channel, the S\+DK unbinds the remote user.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Call this method after {\ttfamily join\+Channel\+Ex}.
\item To update the rendering or mirror mode of the remote video view during a call, use the {\ttfamily set\+Remote\+Render\+Mode\+Ex} method.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em remote} & The remote video view settings. See {\ttfamily Video\+Canvas}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaeb62de5bfe53cdedbe544718dcedb22}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaeb62de5bfe53cdedbe544718dcedb22}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setVideoEncoderConfigurationEx@{setVideoEncoderConfigurationEx}}
\index{setVideoEncoderConfigurationEx@{setVideoEncoderConfigurationEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setVideoEncoderConfigurationEx()}{setVideoEncoderConfigurationEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Video\+Encoder\+Configuration\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration}{Video\+Encoder\+Configuration}}}]{config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the video encoder configuration. 

Sets the encoder configuration for the local video. Each configuration profile corresponds to a set of video parameters, including the resolution, frame rate, and bitrate. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}.

\begin{DoxyNote}{Note}
The {\ttfamily config} specified in this method is the maximum value under ideal network conditions. If the video engine cannot render the video using the specified {\ttfamily config} due to unreliable network conditions, the parameters further down the list are considered until a successful configuration is found.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em config} & Video profile. See {\ttfamily Video\+Encoder\+Configuration}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab0d85dea975058b632f66fa1dec4990c}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab0d85dea975058b632f66fa1dec4990c}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!updateChannelMediaOptionsEx@{updateChannelMediaOptionsEx}}
\index{updateChannelMediaOptionsEx@{updateChannelMediaOptionsEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{updateChannelMediaOptionsEx()}{updateChannelMediaOptionsEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+update\+Channel\+Media\+Options\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}]{options,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Updates the channel media options after joining the channel. 


\begin{DoxyParams}{Parameters}
{\em options} & The channel media options. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/2\+: The value of a member in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}} is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
\item -\/7\+: The {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object has not been initialized. You need to initialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object before calling this method.
\item -\/8\+: The internal state of the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object is wrong. The possible reason is that the user is not in the channel. Agora recommends that you use the {\ttfamily on\+Connection\+State\+Changed} callback to see whether the user is in the channel. If you receive the {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+D\+I\+S\+C\+O\+N\+N\+E\+C\+T\+ED} (1) or {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+F\+A\+I\+L\+ED} (5) state, the user is not in the channel. You need to call {\ttfamily join\+Channel(String token, String channel\+Id, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options)} to join a channel before calling this method. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2924ae91a7e4d0e28f6fb2670333d229}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2924ae91a7e4d0e28f6fb2670333d229}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!joinChannelEx@{joinChannelEx}}
\index{joinChannelEx@{joinChannelEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{joinChannelEx()}{joinChannelEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+join\+Channel\+Ex (\begin{DoxyParamCaption}\item[{String}]{token,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}]{options,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}]{event\+Handler }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Joins a channel. 

You can call this method multiple times to join more than one channel. If you want to join the same channel from different devices, ensure that the user I\+Ds are different for all devices. Applicable scenarios\+: This method can be called in scenarios involving multiple channels. Call timing\+: Call this method after {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_afffd4c0d9b799631ed407c5167b6e09a}{create(\+Rtc\+Engine\+Config config)}}}. In a multi-\/camera capture scenario, you need to call the {\ttfamily start\+Preview(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_video_source_type}{Constants.\+Video\+Source\+Type}} source\+Type)} method after calling this method to set the {\ttfamily source\+Type} to {\ttfamily V\+I\+D\+E\+O\+\_\+\+S\+O\+U\+R\+C\+E\+\_\+\+C\+A\+M\+E\+R\+A\+\_\+\+S\+E\+C\+O\+N\+D\+A\+RY}, to ensure that the second camera captures normally. Related callbacks\+: A successful call of this method triggers the following callbacks\+:
\begin{DoxyItemize}
\item The local client\+: The {\ttfamily on\+Join\+Channel\+Success} and {\ttfamily on\+Connection\+State\+Changed} callbacks.
\item The remote client\+: The {\ttfamily on\+User\+Joined} callback, if a user joining the channel in the C\+O\+M\+M\+U\+N\+I\+C\+A\+T\+I\+ON profile, or a host joining a channel in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile. When the connection between the local client and Agora\textquotesingle{}s server is interrupted due to poor network conditions, the S\+DK tries reconnecting to the server. When the local client successfully rejoins the channel, the S\+DK triggers the {\ttfamily on\+Rejoin\+Channel\+Success} callback on the local client.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
If you are already in a channel, you cannot rejoin the channel with the same user ID. Before joining a channel, ensure that the App ID you use to generate a token is the same as that you pass in the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_afffd4c0d9b799631ed407c5167b6e09a}{create(\+Rtc\+Engine\+Config config)}}} method; otherwise, you may fail to join the channel with the token.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em token} & The token generated on your server for authentication.\+Note\+:
\begin{DoxyItemize}
\item (Recommended) If your project has enabled the security mode (using A\+PP ID and Token for authentication), this parameter is required.
\item If you have only enabled the testing mode (using A\+PP ID for authentication), this parameter is optional. You will automatically exit the channel 24 hours after successfully joining in.
\item If you need to join different channels at the same time or switch between channels, Agora recommends using a wildcard token so that you don\textquotesingle{}t need to apply for a new token every time joining a channel. See {\ttfamily Secure authentication with tokens}. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em options} & The channel media options. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}. \\
\hline
{\em event\+Handler} & The callback class of {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex}{Rtc\+Engine\+Ex}}}. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}. You can get the callback events of multiple channels through the {\ttfamily event\+Handler} object passed in this parameter.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/2\+: The parameter is invalid. For example, the token is invalid, the {\ttfamily uid} parameter is not set to an integer, or the value of a member in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}} is invalid. You need to pass in a valid parameter and join the channel again.
\item -\/3\+: Fails to initialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object. You need to reinitialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object.
\item -\/7\+: The {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object has not been initialized. You need to initialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object before calling this method.
\item -\/8\+: The internal state of the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object is wrong. The typical cause is that after calling {\ttfamily start\+Echo\+Test} to start a call loop test, you call this method to join the channel without calling {\ttfamily stop\+Echo\+Test} to stop the test. You need to call {\ttfamily stop\+Echo\+Test} before calling this method.
\item -\/17\+: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the {\ttfamily on\+Connection\+State\+Changed} callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+D\+I\+S\+C\+O\+N\+N\+E\+C\+T\+ED} (1) state.
\item -\/102\+: The channel name is invalid. You need to pass in a valid channel name in {\ttfamily channel\+Id} to rejoin the channel.
\item -\/121\+: The user ID is invalid. You need to pass in a valid user ID in {\ttfamily uid} to rejoin the channel. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0ca89d99341220118578114e1e30f974}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0ca89d99341220118578114e1e30f974}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!leaveChannelEx@{leaveChannelEx}}
\index{leaveChannelEx@{leaveChannelEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{leaveChannelEx()}{leaveChannelEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+leave\+Channel\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Leaves a channel. 

After calling this method, the S\+DK terminates the audio and video interaction, leaves the current channel, and releases all resources related to the session. After calling {\ttfamily join\+Channel\+Ex} to join a channel, you must call this method or {\ttfamily leave\+Channel\+Ex(\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}} options)} to end the call, otherwise, the next call cannot be started. Applicable scenarios\+: This method can be called in scenarios involving multiple channels. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: A successful call of this method triggers the following callbacks\+:
\begin{DoxyItemize}
\item The local client\+: The {\ttfamily on\+Leave\+Channel} callback will be triggered.
\item The remote client\+: The {\ttfamily on\+User\+Offline} callback will be triggered after the remote host leaves the channel.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
If you call {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_a87e95e4a63d9f2ff9f04f632ffccfce8}{destroy()}}} immediately after calling this method, the S\+DK does not trigger the {\ttfamily on\+Leave\+Channel} callback.
\begin{DoxyItemize}
\item This method call is asynchronous. When this method returns, it does not necessarily mean that the user has left the channel.
\item If you call {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_af3fe5d61a9ca8db36b56432273d02307}{leave\+Channel()}}} or {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ab4af0c1df4b68eb898b1843dd0671702}{leave\+Channel(\+Leave\+Channel\+Options options)}}}, you will leave all the channels you have joined by calling {\ttfamily join\+Channel(String token, String channel\+Id, String optional\+Info, int uid)}, {\ttfamily join\+Channel(String token, String channel\+Id, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options)}, or {\ttfamily join\+Channel\+Ex}.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a50d6557d97deaa7019300b1665af3b70}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a50d6557d97deaa7019300b1665af3b70}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!leaveChannelEx@{leaveChannelEx}}
\index{leaveChannelEx@{leaveChannelEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{leaveChannelEx()}{leaveChannelEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+leave\+Channel\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}}}]{options }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets channel options and leaves the channel. 

After calling this method, the S\+DK terminates the audio and video interaction, leaves the current channel, and releases all resources related to the session. After calling {\ttfamily join\+Channel\+Ex} to join a channel, you must call this method or {\ttfamily leave\+Channel\+Ex(\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} connection)} to end the call, otherwise, the next call cannot be started. Applicable scenarios\+: This method can be called in scenarios involving multiple channels. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: A successful call of this method triggers the following callbacks\+:
\begin{DoxyItemize}
\item The local client\+: The {\ttfamily on\+Leave\+Channel} callback will be triggered.
\item The remote client\+: The {\ttfamily on\+User\+Offline} callback will be triggered after the remote host leaves the channel.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
If you call {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_a87e95e4a63d9f2ff9f04f632ffccfce8}{destroy()}}} immediately after calling this method, the S\+DK does not trigger the {\ttfamily on\+Leave\+Channel} callback.
\begin{DoxyItemize}
\item This method call is asynchronous. When this method returns, it does not necessarily mean that the user has left the channel.
\item If you call {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_af3fe5d61a9ca8db36b56432273d02307}{leave\+Channel()}}} or {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ab4af0c1df4b68eb898b1843dd0671702}{leave\+Channel(\+Leave\+Channel\+Options options)}}}, you will leave all the channels you have joined by calling {\ttfamily join\+Channel(String token, String channel\+Id, String optional\+Info, int uid)}, {\ttfamily join\+Channel(String token, String channel\+Id, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options)}, or {\ttfamily join\+Channel\+Ex}.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em options} & Since v4.\+1.\+0 The options for leaving the channel. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}}}. Note\+: This parameter only supports the {\ttfamily stop\+Microphone\+Recording} member in the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}}} settings; setting other members does not take effect.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a09c6ebe1b83df78053bc09775ce621af}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a09c6ebe1b83df78053bc09775ce621af}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!leaveChannelWithUserAccountEx@{leaveChannelWithUserAccountEx}}
\index{leaveChannelWithUserAccountEx@{leaveChannelWithUserAccountEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{leaveChannelWithUserAccountEx()}{leaveChannelWithUserAccountEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+leave\+Channel\+With\+User\+Account\+Ex (\begin{DoxyParamCaption}\item[{String}]{channel\+Id,  }\item[{String}]{user\+Account,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options}}}]{options }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Leaves a channel with the channel ID and user account and sets the options for leaving.


\begin{DoxyParams}{Parameters}
{\em channel\+Id} & The channel name. The maximum length of this parameter is 64 bytes. Supported character scopes are\+:
\begin{DoxyItemize}
\item All lowercase English letters\+: a to z.
\item All uppercase English letters\+: A to Z.
\item All numeric characters\+: 0 to 9.
\item The space character.
\item Punctuation characters and other symbols, including\+: \char`\"{}!\char`\"{}, \char`\"{}\#\char`\"{}, \char`\"{}\$\char`\"{}, \char`\"{}\%\char`\"{}, \char`\"{}\&\char`\"{}, \char`\"{}(\char`\"{}, \char`\"{})\char`\"{}, \char`\"{}+\char`\"{}, \char`\"{}-\/\char`\"{}, \char`\"{}\+:\char`\"{}, \char`\"{};\char`\"{}, \char`\"{}$<$\char`\"{}, \char`\"{}=\char`\"{}, \char`\"{}.\char`\"{}, \char`\"{}$>$\char`\"{}, \char`\"{}?\char`\"{}, \char`\"{}@\char`\"{}, \char`\"{}\mbox{[}\char`\"{}, \char`\"{}\mbox{]}\char`\"{}, \char`\"{}$^\wedge$\char`\"{}, \char`\"{}\+\_\+\char`\"{}, \char`\"{} \{\char`\"{}, \char`\"{}\}\char`\"{}, \char`\"{}$\vert$\char`\"{}, \char`\"{}$\sim$\char`\"{}, \char`\"{},\char`\"{}. 
\end{DoxyItemize}\\
\hline
{\em user\+Account} & The user account. The maximum length of this parameter is 255 bytes. Ensure that you set this parameter and do not set it as null. Supported character scopes are\+:
\begin{DoxyItemize}
\item All lowercase English letters\+: a to z.
\item All uppercase English letters\+: A to Z.
\item All numeric characters\+: 0 to 9.
\item The space character.
\item Punctuation characters and other symbols, including\+: \char`\"{}!\char`\"{}, \char`\"{}\#\char`\"{}, \char`\"{}\$\char`\"{}, \char`\"{}\%\char`\"{}, \char`\"{}\&\char`\"{}, \char`\"{}(\char`\"{}, \char`\"{})\char`\"{}, \char`\"{}+\char`\"{}, \char`\"{}-\/\char`\"{}, \char`\"{}\+:\char`\"{}, \char`\"{};\char`\"{}, \char`\"{}$<$\char`\"{}, \char`\"{}=\char`\"{}, \char`\"{}.\char`\"{}, \char`\"{}$>$\char`\"{}, \char`\"{}?\char`\"{}, \char`\"{}@\char`\"{}, \char`\"{}\mbox{[}\char`\"{}, \char`\"{}\mbox{]}\char`\"{}, \char`\"{}$^\wedge$\char`\"{}, \char`\"{}\+\_\+\char`\"{}, \char`\"{} \{\char`\"{}, \char`\"{}\}\char`\"{}, \char`\"{}$\vert$\char`\"{}, \char`\"{}$\sim$\char`\"{}, \char`\"{},\char`\"{}. 
\end{DoxyItemize}\\
\hline
{\em options} & The options for leaving the channel. See \{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_leave_channel_options}{Leave\+Channel\+Options\}. 0\+: Success.$<$ 0\+: Failure. }}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6460a5ca7dd2fb4082f3468977ceb88a}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6460a5ca7dd2fb4082f3468977ceb88a}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!enableDualStreamModeEx@{enableDualStreamModeEx}}
\index{enableDualStreamModeEx@{enableDualStreamModeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{enableDualStreamModeEx()}{enableDualStreamModeEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+enable\+Dual\+Stream\+Mode\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{enabled,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}}}]{stream\+Config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Enables or disables dual-\/stream mode on the sender side. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000059}{Deprecated}}]v4.\+2.\+0. This method is deprecated. Use set\+Dual\+Stream\+Mode\+Ex instead.\end{DoxyRefDesc}


You can call this method to enable or disable the dual-\/stream mode on the publisher side. Dual streams are a pairing of a high-\/quality video stream and a low-\/quality video stream\+:
\begin{DoxyItemize}
\item High-\/quality video stream\+: High bitrate, high resolution.
\item Low-\/quality video stream\+: Low bitrate, low resolution. After you enable dual-\/stream mode, you can call {\ttfamily set\+Remote\+Video\+Stream\+Type(int uid, int stream\+Type)} to choose to receive either the high-\/quality video stream or the low-\/quality video stream on the subscriber side.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
This method is applicable to all types of streams from the sender, including but not limited to video streams collected from cameras, screen sharing streams, and custom-\/collected video streams.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em enabled} & Whether to enable dual-\/stream mode\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Enable dual-\/stream mode.
\item {\ttfamily false}\+: (Default) Disable dual-\/stream mode. 
\end{DoxyItemize}\\
\hline
{\em stream\+Config} & The configuration of the low-\/quality video stream. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}}}.Note\+: When setting {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM}, setting {\ttfamily stream\+Config} will not take effect. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaf2964b55e09b69c302c3dfa90f584f8}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aaf2964b55e09b69c302c3dfa90f584f8}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setDualStreamModeEx@{setDualStreamModeEx}}
\index{setDualStreamModeEx@{setDualStreamModeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setDualStreamModeEx()}{setDualStreamModeEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Dual\+Stream\+Mode\+Ex (\begin{DoxyParamCaption}\item[{Constants.\+Simulcast\+Stream\+Mode}]{mode,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}}}]{stream\+Config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the dual-\/stream mode on the sender side. 

The S\+DK defaults to enabling low-\/quality video stream adaptive mode ( {\ttfamily A\+U\+T\+O\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} ) on the sender side, which means the sender does not actively send low-\/quality video stream. The receiving end with the role of the {\bfseries{host}} can initiate a low-\/quality video stream request by calling {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a9e17e1b311520cf8cab4cab3b110f23f}{set\+Remote\+Video\+Stream\+Type\+Ex(int uid, int stream\+Type, Rtc\+Connection connection)}}}, and upon receiving the request, the sending end automatically starts sending low-\/quality stream.
\begin{DoxyItemize}
\item If you want to modify this behavior, you can call this method and set {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (never send low-\/quality video streams) or {\ttfamily E\+N\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM} (always send low-\/quality video streams).
\item If you want to restore the default behavior after making changes, you can call this method again with {\ttfamily mode} set to {\ttfamily A\+U\+T\+O\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM}.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
The difference and connection between this method and {\ttfamily enable\+Dual\+Stream\+Mode\+Ex} is as follows\+:
\begin{DoxyItemize}
\item When calling this method and setting {\ttfamily mode} to D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM, it has the same effect as {\ttfamily enable\+Dual\+Stream\+Mode\+Ex} {\ttfamily (false)}.
\item When calling this method and setting {\ttfamily mode} to E\+N\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM, it has the same effect as {\ttfamily enable\+Dual\+Stream\+Mode\+Ex} {\ttfamily (true)}.
\item Both methods can be called before and after joining a channel. If both methods are used, the settings in the method called later takes precedence.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em mode} & The mode in which the video stream is sent. See {\ttfamily Simulcast\+Stream\+Mode}. \\
\hline
{\em stream\+Config} & The configuration of the low-\/quality video stream. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_stream_config}{Simulcast\+Stream\+Config}}}.Note\+: When setting {\ttfamily mode} to {\ttfamily D\+I\+S\+A\+B\+L\+E\+\_\+\+S\+I\+M\+U\+L\+C\+A\+S\+T\+\_\+\+S\+T\+R\+E\+AM}, setting {\ttfamily stream\+Config} will not take effect. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a978186c326162928f832798fc77b9ab2}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a978186c326162928f832798fc77b9ab2}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setSimulcastConfigEx@{setSimulcastConfigEx}}
\index{setSimulcastConfigEx@{setSimulcastConfigEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setSimulcastConfigEx()}{setSimulcastConfigEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Simulcast\+Config\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_config}{Simulcast\+Config}}}]{simulcast\+Config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the simulcast video stream configuration. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
This method can be called in scenarios involving multiple channels. You can call the {\ttfamily set\+Simulcast\+Config} method to set video streams with different resolutions for the same video source. The subscribers can call to select which stream layer to receive. The broadcaster can publish up to four layers of video streams\+: one main stream (highest resolution) and three additional streams of different quality levels. {\ttfamily set\+Remote\+Video\+Stream\+Type(int uid, int stream\+Type)} Applicable scenarios\+: This method can be called in scenarios involving multiple channels.


\begin{DoxyParams}{Parameters}
{\em simulcast\+Config} & This configuration includes seven layers, from S\+T\+R\+E\+A\+M\+\_\+\+L\+A\+Y\+E\+R\+\_\+1 to S\+T\+R\+E\+A\+M\+\_\+\+L\+OW, with a maximum of three layers enabled simultaneously. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_simulcast_config}{Simulcast\+Config}}}. \\
\hline
{\em connection} & Connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa5dc092764403b67a7b2e4d44498426f}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa5dc092764403b67a7b2e4d44498426f}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!getConnectionStateEx@{getConnectionStateEx}}
\index{getConnectionStateEx@{getConnectionStateEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{getConnectionStateEx()}{getConnectionStateEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+get\+Connection\+State\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Gets the current connection state of the S\+DK. 

Call timing\+: This method can be called either before or after joining the channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The current connection state. 
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad2eafbbadf02292d3f91bd6594903889}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad2eafbbadf02292d3f91bd6594903889}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!sendCustomReportMessageEx@{sendCustomReportMessageEx}}
\index{sendCustomReportMessageEx@{sendCustomReportMessageEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{sendCustomReportMessageEx()}{sendCustomReportMessageEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+send\+Custom\+Report\+Message\+Ex (\begin{DoxyParamCaption}\item[{String}]{id,  }\item[{String}]{category,  }\item[{String}]{event,  }\item[{String}]{label,  }\item[{int}]{value,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Agora supports reporting and analyzing customized messages. 

Agora supports reporting and analyzing customized messages. This function is in the beta stage with a free trial. The ability provided in its beta test version is reporting a maximum of 10 message pieces within 6 seconds, with each message piece not exceeding 256 bytes and each string not exceeding 100 bytes. To try out this function, contact {\ttfamily support@agora.\+io} and discuss the format of customized messages with us. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afbd77e494546503282d926a34ad85c5a}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afbd77e494546503282d926a34ad85c5a}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!sendStreamMessageEx@{sendStreamMessageEx}}
\index{sendStreamMessageEx@{sendStreamMessageEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{sendStreamMessageEx()}{sendStreamMessageEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+send\+Stream\+Message\+Ex (\begin{DoxyParamCaption}\item[{int}]{stream\+Id,  }\item[{byte\mbox{[}$\,$\mbox{]}}]{message,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sends data stream messages. 

After calling {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}{create\+Data\+Stream\+Ex(\+Data\+Stream\+Config config, Rtc\+Connection connection)}}}, you can call this method to send data stream messages to all users in the channel. The S\+DK has the following restrictions on this method\+:
\begin{DoxyItemize}
\item Each client within the channel can have up to 5 data channels simultaneously, with a total shared packet bitrate limit of 30 K\+B/s for all data channels.
\item Each data channel can send up to 60 packets per second, with each packet being a maximum of 1 KB. A successful method call triggers the {\ttfamily on\+Stream\+Message} callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the {\ttfamily on\+Stream\+Message\+Error} callback on the remote client.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item 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}.
\item Call this method after {\ttfamily join\+Channel\+Ex}.
\item Ensure that you call {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}{create\+Data\+Stream\+Ex(\+Data\+Stream\+Config config, Rtc\+Connection connection)}}} to create a data channel before calling this method.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em stream\+Id} & The data stream ID. You can get the data stream ID by calling {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}{create\+Data\+Stream\+Ex(\+Data\+Stream\+Config config, Rtc\+Connection connection)}}}\\
\hline
{\em message} & The message to be sent. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3176642c69a659c9dbfd3de738ef9d89}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3176642c69a659c9dbfd3de738ef9d89}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!sendRdtMessageEx@{sendRdtMessageEx}}
\index{sendRdtMessageEx@{sendRdtMessageEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{sendRdtMessageEx()}{sendRdtMessageEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+send\+Rdt\+Message\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{int}]{type,  }\item[{byte\mbox{[}$\,$\mbox{]}}]{message,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Send Reliable message to remote uid in channel. 

@technical preview


\begin{DoxyParams}{Parameters}
{\em uid} & remote user id. \\
\hline
{\em type} & Reliable Data Transmission tunnel message type. \\
\hline
{\em message} & The sent data. \\
\hline
{\em connection} & Connection ID. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1535da02d9d28486b1af919600d7e174}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1535da02d9d28486b1af919600d7e174}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!sendMediaControlMessageEx@{sendMediaControlMessageEx}}
\index{sendMediaControlMessageEx@{sendMediaControlMessageEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{sendMediaControlMessageEx()}{sendMediaControlMessageEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+send\+Media\+Control\+Message\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{byte\mbox{[}$\,$\mbox{]}}]{message,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Send media control message. 

@technical preview


\begin{DoxyParams}{Parameters}
{\em uid} & remote user id. In particular, if the uid is set to 0, it means broadcasting the message to the entire channel. \\
\hline
{\em message} & The sent data, max 1024 Bytes. \\
\hline
{\em connection} & Connection ID. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f29396994d5885d64fbb8b6b8f9361f}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f29396994d5885d64fbb8b6b8f9361f}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!createDataStreamEx@{createDataStreamEx}}
\index{createDataStreamEx@{createDataStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{createDataStreamEx()}{createDataStreamEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+create\+Data\+Stream\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{reliable,  }\item[{boolean}]{ordered,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Creates a data stream. 

You can call this method to create a data stream and improve the reliability and ordering of data transmission. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: After setting {\ttfamily reliable} to {\ttfamily true}, if the recipient does not receive the data within five seconds, the S\+DK triggers the {\ttfamily on\+Stream\+Message\+Error} callback and returns an error code.

\begin{DoxyNote}{Note}
Each user can create up to five data streams during the lifecycle of {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}}. The data stream will be destroyed when leaving the channel, and the data stream needs to be recreated if needed.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em reliable} & Sets whether the recipients are guaranteed to receive the data stream within five seconds\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: The recipients receive the data from the sender within five seconds. If the recipient does not receive the data within five seconds, the S\+DK triggers the {\ttfamily on\+Stream\+Message\+Error} callback and returns an error code.
\item {\ttfamily false}\+: There is no guarantee that the recipients receive the data stream within five seconds and no error message is reported for any delay or missing data stream. Attention\+: Please ensure that {\ttfamily reliable} and {\ttfamily ordered} are either both set to{\ttfamily true} or both set to {\ttfamily false}. 
\end{DoxyItemize}\\
\hline
{\em ordered} & Sets whether the recipients receive the data stream in the sent order\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: The recipients receive the data in the sent order.
\item {\ttfamily false}\+: The recipients do not receive the data in the sent order. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item ID of the created data stream, if the method call succeeds.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a0e80f899232c87cd9984ee776c909f96}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!createDataStreamEx@{createDataStreamEx}}
\index{createDataStreamEx@{createDataStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{createDataStreamEx()}{createDataStreamEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+create\+Data\+Stream\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_data_stream_config}{Data\+Stream\+Config}}}]{config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Creates a data stream. 

Compared to {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f29396994d5885d64fbb8b6b8f9361f}{create\+Data\+Stream\+Ex(boolean reliable, boolean ordered, Rtc\+Connection connection)}}}, this method does not guarantee the reliability of data transmission. If a data packet is not received five seconds after it was sent, the S\+DK directly discards the data. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}.

\begin{DoxyNote}{Note}
Each user can create up to five data streams during the lifecycle of {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}}. The data stream will be destroyed when leaving the channel, and the data stream needs to be recreated if needed. 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 config} & The configurations for the data stream. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_data_stream_config}{Data\+Stream\+Config}}}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item ID of the created data stream, if the method call succeeds.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aed8d2a40abdbc2c7ed2d4c83a5ea392e}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aed8d2a40abdbc2c7ed2d4c83a5ea392e}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!joinChannelWithUserAccountEx@{joinChannelWithUserAccountEx}}
\index{joinChannelWithUserAccountEx@{joinChannelWithUserAccountEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{joinChannelWithUserAccountEx()}{joinChannelWithUserAccountEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+join\+Channel\+With\+User\+Account\+Ex (\begin{DoxyParamCaption}\item[{String}]{token,  }\item[{String}]{channel\+Id,  }\item[{String}]{user\+Account,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}]{options,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}]{event\+Handler }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Join a channel using a user account and token, and set the media options. 

Before calling this method, if you have not called {\ttfamily register\+Local\+User\+Account} to register a user account, when you call this method to join a channel, the S\+DK automatically creates a user account for you. Calling the {\ttfamily register\+Local\+User\+Account} method to register a user account, and then calling this method to join a channel can shorten the time it takes to enter the channel. Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and {\bfseries{billings}}. If you want to stop subscribing to the media stream of other users, you can set the {\ttfamily options} parameter or call the corresponding {\ttfamily mute} method. Call timing\+: Call this method after {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_afffd4c0d9b799631ed407c5167b6e09a}{create(\+Rtc\+Engine\+Config config)}}}. Related callbacks\+: After the user successfully joins the channel, the S\+DK triggers the following callbacks\+:
\begin{DoxyItemize}
\item The local client\+: {\ttfamily on\+Local\+User\+Registered}, {\ttfamily on\+Join\+Channel\+Success} and {\ttfamily on\+Connection\+State\+Changed} callbacks.
\item The remote client\+: The {\ttfamily on\+User\+Joined} and {\ttfamily on\+User\+Info\+Updated} callbacks if a user joins the channel in the C\+O\+M\+M\+U\+N\+I\+C\+A\+T\+I\+ON profile, or if a host joins the channel in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item This method only supports users joining one channel at a time.
\item Users with different App I\+Ds cannot call each other.
\item Before joining a channel, ensure that the App ID you use to generate a token is the same as that you pass in the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_afffd4c0d9b799631ed407c5167b6e09a}{create(\+Rtc\+Engine\+Config config)}}} method; otherwise, you may fail to join the channel with the token. To ensure smooth communication, use the same parameter type to identify the user. For example, if a user joins the channel with a U\+ID, then ensure all the other users use the U\+ID too. The same applies to the user account. If a user joins the channel with the Agora Web S\+DK, ensure that the ID of the user is set to the same parameter type.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em token} & The token generated on your server for authentication.\+Note\+:
\begin{DoxyItemize}
\item (Recommended) If your project has enabled the security mode (using A\+PP ID and Token for authentication), this parameter is required.
\item If you have only enabled the testing mode (using A\+PP ID for authentication), this parameter is optional. You will automatically exit the channel 24 hours after successfully joining in.
\item If you need to join different channels at the same time or switch between channels, Agora recommends using a wildcard token so that you don\textquotesingle{}t need to apply for a new token every time joining a channel. See {\ttfamily Secure authentication with tokens}. 
\end{DoxyItemize}\\
\hline
{\em channel\+Id} & The channel name. This parameter signifies the channel in which users engage in real-\/time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters (89 characters in total)\+:
\begin{DoxyItemize}
\item All lowercase English letters\+: a to z.
\item All uppercase English letters\+: A to Z.
\item All numeric characters\+: 0 to 9.
\item \char`\"{}!\char`\"{}, \char`\"{}\#\char`\"{}, \char`\"{}\$\char`\"{}, \char`\"{}\%\char`\"{}, \char`\"{}\&\char`\"{}, \char`\"{}(\char`\"{}, \char`\"{})\char`\"{}, \char`\"{}+\char`\"{}, \char`\"{}-\/\char`\"{}, \char`\"{}\+:\char`\"{}, \char`\"{};\char`\"{}, \char`\"{}$<$\char`\"{}, \char`\"{}=\char`\"{}, \char`\"{}.\char`\"{}, \char`\"{}$>$\char`\"{}, \char`\"{}?\char`\"{}, \char`\"{}@\char`\"{}, \char`\"{}\mbox{[}\char`\"{}, \char`\"{}\mbox{]}\char`\"{}, \char`\"{}$^\wedge$\char`\"{}, \char`\"{}\+\_\+\char`\"{}, \char`\"{}\{\char`\"{}, \char`\"{}\}\char`\"{}, \char`\"{}$\vert$\char`\"{}, \char`\"{}$\sim$\char`\"{}, \char`\"{},\char`\"{} 
\end{DoxyItemize}\\
\hline
{\em user\+Account} & The user account. This parameter is used to identify the user in the channel for real-\/time audio and video engagement. You need to set and manage user accounts yourself and ensure that each user account in the same channel is unique. The maximum length of this parameter is 255 bytes. Ensure that you set this parameter and do not set it as N\+U\+LL. Supported characters are as follows(89 in total)\+:
\begin{DoxyItemize}
\item The 26 lowercase English letters\+: a to z.
\item The 26 uppercase English letters\+: A to Z.
\item All numeric characters\+: 0 to 9.
\item Space
\item \char`\"{}!\char`\"{}, \char`\"{}\#\char`\"{}, \char`\"{}\$\char`\"{}, \char`\"{}\%\char`\"{}, \char`\"{}\&\char`\"{}, \char`\"{}(\char`\"{}, \char`\"{})\char`\"{}, \char`\"{}+\char`\"{}, \char`\"{}-\/\char`\"{}, \char`\"{}\+:\char`\"{}, \char`\"{};\char`\"{}, \char`\"{}$<$\char`\"{}, \char`\"{}=\char`\"{}, \char`\"{}.\char`\"{}, \char`\"{}$>$\char`\"{}, \char`\"{}?\char`\"{}, \char`\"{}@\char`\"{}, \char`\"{}\mbox{[}\char`\"{}, \char`\"{}\mbox{]}\char`\"{}, \char`\"{}$^\wedge$\char`\"{}, \char`\"{}\+\_\+\char`\"{}, \char`\"{}\{\char`\"{}, \char`\"{}\}\char`\"{}, \char`\"{}$\vert$\char`\"{}, \char`\"{}$\sim$\char`\"{}, \char`\"{},\char`\"{} 
\end{DoxyItemize}\\
\hline
{\em options} & The channel media options. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}. \\
\hline
{\em event\+Handler} & The callback class of {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex}{Rtc\+Engine\+Ex}}}. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}. You can get the callback events of multiple channels through the {\ttfamily event\+Handler} object passed in this parameter.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/2\+: The parameter is invalid. For example, the token is invalid, the {\ttfamily uid} parameter is not set to an integer, or the value of a member in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}} is invalid. You need to pass in a valid parameter and join the channel again.
\item -\/3\+: Fails to initialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object. You need to reinitialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object.
\item -\/7\+: The {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object has not been initialized. You need to initialize the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object before calling this method.
\item -\/8\+: The internal state of the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine}{Rtc\+Engine}}} object is wrong. The typical cause is that after calling {\ttfamily start\+Echo\+Test} to start a call loop test, you call this method to join the channel without calling {\ttfamily stop\+Echo\+Test} to stop the test. You need to call {\ttfamily stop\+Echo\+Test} before calling this method.
\item -\/17\+: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the {\ttfamily on\+Connection\+State\+Changed} callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the {\ttfamily C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+S\+T\+A\+T\+E\+\_\+\+D\+I\+S\+C\+O\+N\+N\+E\+C\+T\+ED} (1) state.
\item -\/102\+: The channel name is invalid. You need to pass in a valid channel name in {\ttfamily channel\+Id} to rejoin the channel.
\item -\/121\+: The user ID is invalid. You need to pass in a valid user ID in {\ttfamily uid} to rejoin the channel. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6834e28cdc3ab7800fd4f3778c38b5ea}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6834e28cdc3ab7800fd4f3778c38b5ea}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!getUserInfoByUserAccountEx@{getUserInfoByUserAccountEx}}
\index{getUserInfoByUserAccountEx@{getUserInfoByUserAccountEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{getUserInfoByUserAccountEx()}{getUserInfoByUserAccountEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+get\+User\+Info\+By\+User\+Account\+Ex (\begin{DoxyParamCaption}\item[{String}]{user\+Account,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}}]{user\+Info,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Gets the user information by passing in the user account. 

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 the {\ttfamily on\+User\+Info\+Updated} callback on the local client. After receiving the callback, you can call this method and pass in the U\+ID to get the user account of the specified user from the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object.


\begin{DoxyParams}{Parameters}
{\em user\+Account} & The user account. \\
\hline
{\em user\+Info} & The {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object that identifies the user information.
\begin{DoxyItemize}
\item Input value\+: A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object.
\item Output\+: A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object that contains the user account and user ID of the user. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object, if the method call succeeds.
\item N\+U\+LL, if the method call fails. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aefbb8bdef83eba14b164ee6491b4b219}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aefbb8bdef83eba14b164ee6491b4b219}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!getUserInfoByUidEx@{getUserInfoByUidEx}}
\index{getUserInfoByUidEx@{getUserInfoByUidEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{getUserInfoByUidEx()}{getUserInfoByUidEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+get\+User\+Info\+By\+Uid\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}}]{user\+Info,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Gets the user information by passing in the user ID. 

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 the {\ttfamily on\+User\+Info\+Updated} callback on the local client. After receiving the callback, you can call this method and pass in the U\+ID to get the user account of the specified user from the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID. \\
\hline
{\em user\+Info} & The {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object that identifies the user information.
\begin{DoxyItemize}
\item Input value\+: A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object.
\item Output\+: A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object that contains the user account and user ID of the user. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item A {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_user_info}{User\+Info}}} object, if the method call succeeds.
\item N\+U\+LL, if the method call fails. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a514e60eaced00e99d366fa2905b0b544}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a514e60eaced00e99d366fa2905b0b544}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!adjustRecordingSignalVolumeEx@{adjustRecordingSignalVolumeEx}}
\index{adjustRecordingSignalVolumeEx@{adjustRecordingSignalVolumeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{adjustRecordingSignalVolumeEx()}{adjustRecordingSignalVolumeEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+adjust\+Recording\+Signal\+Volume\+Ex (\begin{DoxyParamCaption}\item[{int}]{volume,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Adjusts the recording volume.


\begin{DoxyParams}{Parameters}
{\em volume} & The recording volume, which ranges from 0 to 400\+:
\begin{DoxyItemize}
\item 0 \+: Mute the recording volume.
\item 100\+: The original volume.
\item 400\+: (Maximum) Four times the original volume with signal clipping protection.
\end{DoxyItemize}\\
\hline
{\em connection} & The \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} object.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0 \+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a55af6551b33981a9465db16aed6abaf7}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a55af6551b33981a9465db16aed6abaf7}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!muteRecordingSignalEx@{muteRecordingSignalEx}}
\index{muteRecordingSignalEx@{muteRecordingSignalEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{muteRecordingSignalEx()}{muteRecordingSignalEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+mute\+Recording\+Signal\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{muted,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Mute or resume recording signal volume.


\begin{DoxyParams}{Parameters}
{\em muted} & Determines whether to mute or resume the recording signal volume.
\begin{DoxyItemize}
\item true\+: Mute the recording signal volume.
\item false\+: (Default) Resume the recording signal volume.
\end{DoxyItemize}\\
\hline
{\em connection} & The \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} object.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0 \+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af57e2ce82585058fa4c7a31559f222f7}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af57e2ce82585058fa4c7a31559f222f7}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!adjustUserPlaybackSignalVolumeEx@{adjustUserPlaybackSignalVolumeEx}}
\index{adjustUserPlaybackSignalVolumeEx@{adjustUserPlaybackSignalVolumeEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{adjustUserPlaybackSignalVolumeEx()}{adjustUserPlaybackSignalVolumeEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+adjust\+User\+Playback\+Signal\+Volume\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{int}]{volume,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Adjusts the playback signal volume of a specified remote user. 

You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em volume} & The volume of the user. The value range is \mbox{[}0,400\mbox{]}.
\begin{DoxyItemize}
\item 0\+: Mute.
\item 100\+: (Default) The original volume.
\item 400\+: Four times the original volume (amplifying the audio signals by four times). 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aba45908b4f516c481507cefb5aee82e5}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aba45908b4f516c481507cefb5aee82e5}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteVoicePositionEx@{setRemoteVoicePositionEx}}
\index{setRemoteVoicePositionEx@{setRemoteVoicePositionEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteVoicePositionEx()}{setRemoteVoicePositionEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+Voice\+Position\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{double}]{pan,  }\item[{double}]{gain,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets the 2D position (the position on the horizontal plane) of the remote user\textquotesingle{}s voice. 

This method sets the voice position and volume of a remote user. When the local user calls this method to set the voice position of a remote user, the voice difference between the left and right channels allows the local user to track the real-\/time position of the remote user, creating a sense of space. This method applies to massive multiplayer online games, such as Battle Royale games.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item For the best voice positioning, Agora recommends using a wired headset.
\item Call this method after joining a channel.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em pan} & The voice position of the remote user. The value ranges from -\/1.\+0 to 1.\+0\+:
\begin{DoxyItemize}
\item -\/1.\+0\+: The remote voice comes from the left.
\item 0.\+0\+: (Default) The remote voice comes from the front.
\item 1.\+0\+: The remote voice comes from the right. 
\end{DoxyItemize}\\
\hline
{\em gain} & The volume of the remote user. The value ranges from 0.\+0 to 100.\+0. The default value is 100.\+0 (the original volume of the remote user). The smaller the value, the lower the volume. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad876398def5a38a29bad7f66085cdac4}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad876398def5a38a29bad7f66085cdac4}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteVideoSubscriptionOptionsEx@{setRemoteVideoSubscriptionOptionsEx}}
\index{setRemoteVideoSubscriptionOptionsEx@{setRemoteVideoSubscriptionOptionsEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteVideoSubscriptionOptionsEx()}{setRemoteVideoSubscriptionOptionsEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+Video\+Subscription\+Options\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_video_subscription_options}{Video\+Subscription\+Options}}}]{options,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{rtc\+Connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Sets options for subscribing to remote video streams. 

When a remote user has enabled dual-\/stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user.


\begin{DoxyParams}{Parameters}
{\em uid} & The user ID of the remote user. \\
\hline
{\em options} & The video subscription options. See {\ttfamily Video\+Subscription\+Options}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3ee3aba2c1b7596b1a70eb38b1533df0}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3ee3aba2c1b7596b1a70eb38b1533df0}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setRemoteUserSpatialAudioParamsEx@{setRemoteUserSpatialAudioParamsEx}}
\index{setRemoteUserSpatialAudioParamsEx@{setRemoteUserSpatialAudioParamsEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setRemoteUserSpatialAudioParamsEx()}{setRemoteUserSpatialAudioParamsEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Remote\+User\+Spatial\+Audio\+Params\+Ex (\begin{DoxyParamCaption}\item[{int}]{uid,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_spatial_audio_params}{Spatial\+Audio\+Params}}}]{params,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Sets the 3D sound position of a remote user. \begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item For this method to work, enable stereo panning for remote users by calling the enable\+Sound\+Position\+Indication method before joining a channel.
\item This method requires hardware support. For the best sound positioning, we recommend using a wired headset.
\item Ensure that you call this method after joining a channel. 
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em uid} & The ID of the remote user. \\
\hline
{\em azimuth} & \\
\hline
{\em elevation} & \\
\hline
{\em distance} & \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afa97cb95d227e493ee984540fd7a6f08}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afa97cb95d227e493ee984540fd7a6f08}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!addVideoWatermarkEx@{addVideoWatermarkEx}}
\index{addVideoWatermarkEx@{addVideoWatermarkEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{addVideoWatermarkEx()}{addVideoWatermarkEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+add\+Video\+Watermark\+Ex (\begin{DoxyParamCaption}\item[{String}]{watermark\+Url,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_options}{Watermark\+Options}}}]{options,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Adds a watermark image to the local video. 

\begin{DoxySince}{Since}
v2.\+9.\+1 
\end{DoxySince}
\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000060}{Deprecated}}]From v4.\+6.\+0. We recommend using the \{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ace0fe42d41b1c09e6243ecf04d62719d}{add\+Video\+Watermark\}2 method instead.}}\end{DoxyRefDesc}


This method adds a P\+NG watermark image to the local video in the live streaming. Once the watermark image is added, all the audience in the channel (C\+DN audience included), and the capturing device can see and capture it. The Agora S\+DK supports adding only one watermark image onto a live video stream. The newly added watermark image replaces the previous one. The watermark coordinates are dependent on the settings in the {\ttfamily set\+Video\+Encoder\+Configuration\+Ex} method\+:
\begin{DoxyItemize}
\item If the orientation mode of the encoding video ( {\ttfamily O\+R\+I\+E\+N\+T\+A\+T\+I\+O\+N\+\_\+\+M\+O\+DE} ) is fixed landscape mode or the adaptive landscape mode, the watermark uses the landscape orientation.
\item If the orientation mode of the encoding video ( {\ttfamily O\+R\+I\+E\+N\+T\+A\+T\+I\+O\+N\+\_\+\+M\+O\+DE} ) is fixed portrait mode or the adaptive portrait mode, the watermark uses the portrait orientation.
\item When setting the watermark position, the region must be less than the dimensions set in the {\ttfamily set\+Video\+Encoder\+Configuration\+Ex} method; otherwise, the watermark image will be cropped.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Ensure that you have called {\ttfamily enable\+Video} before calling this method.
\item This method supports adding a watermark image in the P\+NG file format only. Supported pixel formats of the P\+NG image are R\+G\+BA, R\+GB, Palette, Gray, and Alpha\+\_\+gray.
\item If the dimensions of the P\+NG image differ from your settings in this method, the image will be cropped or zoomed to conform to your settings.
\item If you have enabled the local video preview by calling the {\ttfamily start\+Preview(\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_video_source_type}{Constants.\+Video\+Source\+Type}} source\+Type)} method, you can use the {\ttfamily visible\+In\+Preview} member to set whether or not the watermark is visible in the preview.
\item If you have enabled the mirror mode for the local video, the watermark on the local video is also mirrored. To avoid mirroring the watermark, Agora recommends that you do not use the mirror and watermark functions for the local video at the same time. You can implement the watermark function in your application layer.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em watermark\+Url} & The local file path of the watermark image to be added. This method supports adding a watermark image from the local absolute or relative file path. \\
\hline
{\em options} & The options of the watermark image to be added. See {\ttfamily Watermark\+Options}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6fecb771abc6b0af09a6edf348796a6e}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6fecb771abc6b0af09a6edf348796a6e}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!addVideoWatermarkEx@{addVideoWatermarkEx}}
\index{addVideoWatermarkEx@{addVideoWatermarkEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{addVideoWatermarkEx()}{addVideoWatermarkEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+add\+Video\+Watermark\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_watermark_config}{Watermark\+Config}}}]{config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Adds a watermark image to the local video. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
Applicable scenarios\+: This method applies to multi-\/channel scenarios.


\begin{DoxyParams}{Parameters}
{\em config} & Watermark configuration. See {\ttfamily Watermark\+Config}. \\
\hline
{\em connection} & {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}} object. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3394ccd6296c1661547fbab600d4898e}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a3394ccd6296c1661547fbab600d4898e}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!removeVideoWatermarkEx@{removeVideoWatermarkEx}}
\index{removeVideoWatermarkEx@{removeVideoWatermarkEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{removeVideoWatermarkEx()}{removeVideoWatermarkEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+remove\+Video\+Watermark\+Ex (\begin{DoxyParamCaption}\item[{String}]{id,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Removes the specified watermark image from the local or remote video stream. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
Applicable scenarios\+: This method applies to multi-\/channel scenarios.


\begin{DoxyParams}{Parameters}
{\em id} & ID of the watermark image to be removed. \\
\hline
{\em connection} & Parameters used to control different connection instances. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afd661370012517f3766611b7f8b5c1b9}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_afd661370012517f3766611b7f8b5c1b9}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!clearVideoWatermarkEx@{clearVideoWatermarkEx}}
\index{clearVideoWatermarkEx@{clearVideoWatermarkEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{clearVideoWatermarkEx()}{clearVideoWatermarkEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+clear\+Video\+Watermark\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Removes the watermark image from the video stream. 


\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad7df291a75259c4a2d853d82514fac97}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ad7df291a75259c4a2d853d82514fac97}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!enableAudioVolumeIndicationEx@{enableAudioVolumeIndicationEx}}
\index{enableAudioVolumeIndicationEx@{enableAudioVolumeIndicationEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{enableAudioVolumeIndicationEx()}{enableAudioVolumeIndicationEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+enable\+Audio\+Volume\+Indication\+Ex (\begin{DoxyParamCaption}\item[{int}]{interval,  }\item[{int}]{smooth,  }\item[{boolean}]{report\+Vad,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Enables the reporting of users\textquotesingle{} volume indication. 

This method enables the S\+DK to regularly report the volume information to the app of the local user who sends a stream and remote users (three users at most) whose instantaneous volumes are the highest. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: The S\+DK triggers the {\ttfamily on\+Audio\+Volume\+Indication} callback according to the interval you set if this method is successfully called and there are users publishing streams in the channel.


\begin{DoxyParams}{Parameters}
{\em interval} & Sets the time interval between two consecutive volume indications\+:
\begin{DoxyItemize}
\item ≤ 0\+: Disables the volume indication.
\item $>$ 0\+: Time interval (ms) between two consecutive volume indications. Ensure this parameter is set to a value greater than 10, otherwise you will not receive the {\ttfamily on\+Audio\+Volume\+Indication} callback. Agora recommends that this value is set as greater than 100. 
\end{DoxyItemize}\\
\hline
{\em smooth} & The smoothing factor that sets the sensitivity of the audio volume indicator. The value ranges between 0 and 10. The recommended value is 3. The greater the value, the more sensitive the indicator. \\
\hline
{\em report\+Vad} & -\/ {\ttfamily true}\+: Enables the voice activity detection of the local user. Once it is enabled, the {\ttfamily vad} parameter of the {\ttfamily on\+Audio\+Volume\+Indication} callback reports the voice activity status of the local user.
\begin{DoxyItemize}
\item {\ttfamily false}\+: (Default) Disables the voice activity detection of the local user. Once it is disabled, the {\ttfamily vad} parameter of the {\ttfamily on\+Audio\+Volume\+Indication} callback does not report the voice activity status of the local user, except for the scenario where the engine automatically detects the voice activity of the local user. 
\end{DoxyItemize}\\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a7bf2d7030aadd312a428a96638f20d72}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a7bf2d7030aadd312a428a96638f20d72}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!takeSnapshotEx@{takeSnapshotEx}}
\index{takeSnapshotEx@{takeSnapshotEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{takeSnapshotEx()}{takeSnapshotEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+take\+Snapshot\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{uid,  }\item[{String}]{file\+Path }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Takes a snapshot of a video stream using connection ID. 

This method takes a snapshot of a video stream from the specified user, generates a J\+PG image, and saves it to the specified path. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: After a successful call of this method, the S\+DK triggers the {\ttfamily on\+Snapshot\+Taken} callback to report whether the snapshot is successfully taken, as well as the details for that snapshot.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item The method is asynchronous, and the S\+DK has not taken the snapshot when the method call returns.
\item When used for local video snapshots, this method takes a snapshot for the video streams specified in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item If the user\textquotesingle{}s video has been preprocessed, for example, watermarked or beautified, the resulting snapshot includes the pre-\/processing effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em uid} & The user ID. Set uid as 0 if you want to take a snapshot of the local user\textquotesingle{}s video. \\
\hline
{\em file\+Path} & The local path (including filename extensions) of the snapshot. For example\+:
\begin{DoxyItemize}
\item Android\+: {\ttfamily /storage/emulated/0/\+Android/data/$<$package name$>$/files/example.jpg} Attention\+: Ensure that the path you specify exists and is writable.
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2f3055802ce7638190a8f850e85a3435}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a2f3055802ce7638190a8f850e85a3435}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!takeSnapshotEx@{takeSnapshotEx}}
\index{takeSnapshotEx@{takeSnapshotEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{takeSnapshotEx()}{takeSnapshotEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+take\+Snapshot\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{uid,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_snapshot_config}{Snapshot\+Config}}}]{config }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Gets a video screenshot of the specified observation point using the connection ID. 

This method takes a snapshot of a video stream from the specified user, generates a J\+PG image, and saves it to the specified path. Call timing\+: Call this method after {\ttfamily join\+Channel\+Ex}. Related callbacks\+: After a successful call of this method, the S\+DK triggers the {\ttfamily on\+Snapshot\+Taken} callback to report whether the snapshot is successfully taken, as well as the details for that snapshot.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item The method is asynchronous, and the S\+DK has not taken the snapshot when the method call returns.
\item When used for local video snapshots, this method takes a snapshot for the video streams specified in {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}}}.
\item If the user\textquotesingle{}s video has been preprocessed, for example, watermarked or beautified, the resulting snapshot includes the pre-\/processing effect.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em uid} & The user ID. Set uid as 0 if you want to take a snapshot of the local user\textquotesingle{}s video. \\
\hline
{\em config} & The configuration of the snaptshot. See {\ttfamily Snapshot\+Config}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aef9ce5ec5c27aa54b2ea035d9df914e0}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aef9ce5ec5c27aa54b2ea035d9df914e0}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!enableContentInspectEx@{enableContentInspectEx}}
\index{enableContentInspectEx@{enableContentInspectEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{enableContentInspectEx()}{enableContentInspectEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+enable\+Content\+Inspect\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{enabled,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_content_inspect_config}{Content\+Inspect\+Config}}}]{config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Enables or disables video screenshot and upload. 

This method can take screenshots for multiple video streams and upload them. When video screenshot and upload function is enabled, the S\+DK takes screenshots and uploads videos sent by local users based on the type and frequency of the module you set in {\ttfamily Content\+Inspect\+Config}. After video screenshot and upload, the Agora server sends the callback notification to your app server in H\+T\+T\+PS requests and sends all screenshots to the third-\/party cloud storage service. Call timing\+: This method can be called either before or after joining the channel.

\begin{DoxyNote}{Note}
Before calling this method, ensure that you have contacted {\ttfamily technical support} to activate the video screenshot upload service.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em enabled} & Whether to enalbe video screenshot and upload\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Enables video screenshot and upload.
\item {\ttfamily false}\+: Disables video screenshot and upload. 
\end{DoxyItemize}\\
\hline
{\em config} & Screenshot and upload configuration. See {\ttfamily Content\+Inspect\+Config}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab9d2bf4f343f8c75fe76f7f618f2ef10}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab9d2bf4f343f8c75fe76f7f618f2ef10}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!startRtmpStreamWithoutTranscodingEx@{startRtmpStreamWithoutTranscodingEx}}
\index{startRtmpStreamWithoutTranscodingEx@{startRtmpStreamWithoutTranscodingEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{startRtmpStreamWithoutTranscodingEx()}{startRtmpStreamWithoutTranscodingEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+start\+Rtmp\+Stream\+Without\+Transcoding\+Ex (\begin{DoxyParamCaption}\item[{String}]{url,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Starts pushing media streams to a C\+DN without transcoding. 

Agora recommends that you use the server-\/side Media Push function. For details, see {\ttfamily Use R\+E\+S\+Tful A\+PI}. You can call this method to push an audio or video stream to the specified C\+DN address. This method can push media streams to only one C\+DN address at a time, so if you need to push streams to multiple addresses, call this method multiple times. After you call this method, the S\+DK triggers the {\ttfamily on\+Rtmp\+Streaming\+State\+Changed} callback on the local client to report the state of the streaming.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Call this method after joining a channel.
\item Only hosts in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile can call this method.
\item If you want to retry pushing streams after a failed push, make sure to call {\ttfamily stop\+Rtmp\+Stream} first, then call this method to retry pushing streams; otherwise, the S\+DK returns the same error code as the last failed push.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em url} & The address of Media Push. The format is R\+T\+MP or R\+T\+M\+PS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/2\+: The U\+RL or configuration of transcoding is invalid; check your U\+RL and transcoding configurations.
\item -\/7\+: The S\+DK is not initialized before calling this method.
\item -\/19\+: The Media Push U\+RL is already in use; use another U\+RL instead. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a159956e874ad3f5dcf4e4a1c44b908dc}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a159956e874ad3f5dcf4e4a1c44b908dc}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!startRtmpStreamWithTranscodingEx@{startRtmpStreamWithTranscodingEx}}
\index{startRtmpStreamWithTranscodingEx@{startRtmpStreamWithTranscodingEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{startRtmpStreamWithTranscodingEx()}{startRtmpStreamWithTranscodingEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+start\+Rtmp\+Stream\+With\+Transcoding\+Ex (\begin{DoxyParamCaption}\item[{String}]{url,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1live_1_1_live_transcoding}{Live\+Transcoding}}}]{transcoding,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Starts Media Push and sets the transcoding configuration. 

Agora recommends that you use the server-\/side Media Push function. For details, see {\ttfamily Use R\+E\+S\+Tful A\+PI}. You can call this method to push a live audio-\/and-\/video stream to the specified C\+DN address and set the transcoding configuration. This method can push media streams to only one C\+DN address at a time, so if you need to push streams to multiple addresses, call this method multiple times. After you call this method, the S\+DK triggers the {\ttfamily on\+Rtmp\+Streaming\+State\+Changed} callback on the local client to report the state of the streaming.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Ensure that you enable the Media Push service before using this function.
\item Call this method after joining a channel.
\item Only hosts in the L\+I\+V\+E\+\_\+\+B\+R\+O\+A\+D\+C\+A\+S\+T\+I\+NG profile can call this method.
\item If you want to retry pushing streams after a failed push, make sure to call {\ttfamily stop\+Rtmp\+Stream\+Ex} first, then call this method to retry pushing streams; otherwise, the S\+DK returns the same error code as the last failed push.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em url} & The address of Media Push. The format is R\+T\+MP or R\+T\+M\+PS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported. \\
\hline
{\em transcoding} & The transcoding configuration for Media Push. See {\ttfamily Live\+Transcoding}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/2\+: The U\+RL or configuration of transcoding is invalid; check your U\+RL and transcoding configurations.
\item -\/7\+: The S\+DK is not initialized before calling this method.
\item -\/19\+: The Media Push U\+RL is already in use; use another U\+RL instead. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a13e7b9caa41e9ed6e9586ddc1da030cb}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a13e7b9caa41e9ed6e9586ddc1da030cb}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!updateRtmpTranscodingEx@{updateRtmpTranscodingEx}}
\index{updateRtmpTranscodingEx@{updateRtmpTranscodingEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{updateRtmpTranscodingEx()}{updateRtmpTranscodingEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+update\+Rtmp\+Transcoding\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1live_1_1_live_transcoding}{Live\+Transcoding}}}]{transcoding,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Updates the transcoding configuration. 

Agora recommends that you use the server-\/side Media Push function. For details, see {\ttfamily Use R\+E\+S\+Tful A\+PI}. After you start pushing media streams to C\+DN with transcoding, you can dynamically update the transcoding configuration according to the scenario. The S\+DK triggers the {\ttfamily on\+Transcoding\+Updated} callback after the transcoding configuration is updated.


\begin{DoxyParams}{Parameters}
{\em transcoding} & The transcoding configuration for Media Push. See {\ttfamily Live\+Transcoding}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa1731922142ba7eaa61b7aa97bef2784}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aa1731922142ba7eaa61b7aa97bef2784}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!stopRtmpStreamEx@{stopRtmpStreamEx}}
\index{stopRtmpStreamEx@{stopRtmpStreamEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{stopRtmpStreamEx()}{stopRtmpStreamEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+stop\+Rtmp\+Stream\+Ex (\begin{DoxyParamCaption}\item[{String}]{url,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops pushing media streams to a C\+DN. 

Agora recommends that you use the server-\/side Media Push function. For details, see {\ttfamily Use R\+E\+S\+Tful A\+PI}. You can call this method to stop the live stream on the specified C\+DN address. This method can stop pushing media streams to only one C\+DN address at a time, so if you need to stop pushing streams to multiple addresses, call this method multiple times. After you call this method, the S\+DK triggers the {\ttfamily on\+Rtmp\+Streaming\+State\+Changed} callback on the local client to report the state of the streaming.


\begin{DoxyParams}{Parameters}
{\em url} & The address of Media Push. The format is R\+T\+MP or R\+T\+M\+PS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a86edd01e9fb8f751dc7d48665ea52634}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a86edd01e9fb8f751dc7d48665ea52634}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!startOrUpdateChannelMediaRelayEx@{startOrUpdateChannelMediaRelayEx}}
\index{startOrUpdateChannelMediaRelayEx@{startOrUpdateChannelMediaRelayEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{startOrUpdateChannelMediaRelayEx()}{startOrUpdateChannelMediaRelayEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+start\+Or\+Update\+Channel\+Media\+Relay\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration}{Channel\+Media\+Relay\+Configuration}}}]{channel\+Media\+Relay\+Configuration,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Starts relaying media streams across channels or updates channels for media relay. 

\begin{DoxySince}{Since}
v4.\+2.\+0
\end{DoxySince}
The first successful call to this method starts relaying media streams from the source channel to the destination channels. To relay the media stream to other channels, or exit one of the current media relays, you can call this method again to update the destination channels. This feature supports relaying media streams to a maximum of six destination channels. After a successful method call, the S\+DK triggers the {\ttfamily on\+Channel\+Media\+Relay\+State\+Changed} callback, and this callback returns the state of the media stream relay. Common states are as follows\+:
\begin{DoxyItemize}
\item If the {\ttfamily on\+Channel\+Media\+Relay\+State\+Changed} callback returns {\ttfamily R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+U\+N\+N\+I\+NG} (2) and {\ttfamily R\+E\+L\+A\+Y\+\_\+\+OK} (0), it means that the S\+DK starts relaying media streams from the source channel to the destination channel.
\item If the {\ttfamily on\+Channel\+Media\+Relay\+State\+Changed} callback returns {\ttfamily R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+T\+E\+\_\+\+F\+A\+I\+L\+U\+RE} (3), an exception occurs during the media stream relay.
\end{DoxyItemize}

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Call this method after joining the channel.
\item This method takes effect only when you are a host in a live streaming channel.
\item The relaying media streams across channels function needs to be enabled by contacting {\ttfamily technical support}.
\item Agora does not support string user accounts in this A\+PI.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em channel\+Media\+Relay\+Configuration} & The configuration of the media stream relay. See {\ttfamily Channel\+Media\+Relay\+Configuration}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/1\+: A general error occurs (no specified reason).
\item -\/2\+: The parameter is invalid.
\item -\/8\+: Internal state error. Probably because the user is not a broadcaster. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aeb48a3c71723e304045d1d562ca18a00}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_aeb48a3c71723e304045d1d562ca18a00}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!stopChannelMediaRelayEx@{stopChannelMediaRelayEx}}
\index{stopChannelMediaRelayEx@{stopChannelMediaRelayEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{stopChannelMediaRelayEx()}{stopChannelMediaRelayEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+stop\+Channel\+Media\+Relay\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Stops the media stream relay. Once the relay stops, the host quits all the target channels. 

After a successful method call, the S\+DK triggers the {\ttfamily on\+Channel\+Media\+Relay\+State\+Changed} callback. If the callback reports {\ttfamily R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+T\+E\+\_\+\+I\+D\+LE} (0) and {\ttfamily R\+E\+L\+A\+Y\+\_\+\+OK} (0), the host successfully stops the relay.

\begin{DoxyNote}{Note}
If the method call fails, the S\+DK triggers the {\ttfamily on\+Channel\+Media\+Relay\+State\+Changed} callback with the {\ttfamily R\+E\+L\+A\+Y\+\_\+\+E\+R\+R\+O\+R\+\_\+\+S\+E\+R\+V\+E\+R\+\_\+\+N\+O\+\_\+\+R\+E\+S\+P\+O\+N\+SE} (2) or {\ttfamily R\+E\+L\+A\+Y\+\_\+\+E\+R\+R\+O\+R\+\_\+\+S\+E\+R\+V\+E\+R\+\_\+\+C\+O\+N\+N\+E\+C\+T\+I\+O\+N\+\_\+\+L\+O\+ST} (8) status code. You can call the {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ab4af0c1df4b68eb898b1843dd0671702}{leave\+Channel(\+Leave\+Channel\+Options options)}}} method to leave the channel, and the media stream relay automatically stops.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/5\+: The method call was rejected. There is no ongoing channel media relay. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af576bbd8060d7d57e49d35b4ccd13e42}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_af576bbd8060d7d57e49d35b4ccd13e42}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!pauseAllChannelMediaRelayEx@{pauseAllChannelMediaRelayEx}}
\index{pauseAllChannelMediaRelayEx@{pauseAllChannelMediaRelayEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{pauseAllChannelMediaRelayEx()}{pauseAllChannelMediaRelayEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+pause\+All\+Channel\+Media\+Relay\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Pauses the media stream relay to all target channels. 

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000061}{Deprecated}}]This method is deprecated from v4.\+2.\+0. Use {\ttfamily start\+Or\+Update\+Channel\+Media\+Relay\+Ex} instead.\end{DoxyRefDesc}


After the cross-\/channel media stream relay starts, you can call this method to pause relaying media streams to all target channels; after the pause, if you want to resume the relay, call {\ttfamily resume\+All\+Channel\+Media\+Relay}.

\begin{DoxyNote}{Note}
Call this method after {\ttfamily start\+Or\+Update\+Channel\+Media\+Relay\+Ex}.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/5\+: The method call was rejected. There is no ongoing channel media relay. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a12988efe2bea6ff85092cca8e095a5e0}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a12988efe2bea6ff85092cca8e095a5e0}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!resumeAllChannelMediaRelayEx@{resumeAllChannelMediaRelayEx}}
\index{resumeAllChannelMediaRelayEx@{resumeAllChannelMediaRelayEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{resumeAllChannelMediaRelayEx()}{resumeAllChannelMediaRelayEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+resume\+All\+Channel\+Media\+Relay\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Resumes the media stream relay to all target channels. 

After calling the {\ttfamily pause\+All\+Channel\+Media\+Relay\+Ex} method, you can call this method to resume relaying media streams to all destination channels.

\begin{DoxyNote}{Note}
Call this method after {\ttfamily pause\+All\+Channel\+Media\+Relay\+Ex}.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure.
\begin{DoxyItemize}
\item -\/5\+: The method call was rejected. There is no paused channel media relay. 
\end{DoxyItemize}
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab2becbdbf8d6f4d8ad71cb9b6fbde383}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab2becbdbf8d6f4d8ad71cb9b6fbde383}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!startMediaRenderingTracingEx@{startMediaRenderingTracingEx}}
\index{startMediaRenderingTracingEx@{startMediaRenderingTracingEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{startMediaRenderingTracingEx()}{startMediaRenderingTracingEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+start\+Media\+Rendering\+Tracing\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Enables tracing the video frame rendering process. 

\begin{DoxySince}{Since}
v4.\+1.\+1
\end{DoxySince}
The S\+DK starts tracing the rendering status of the video frames in the channel from the moment this method is successfully called and reports information about the event through the {\ttfamily on\+Video\+Rendering\+Tracing\+Result} callback. Applicable scenarios\+: Agora recommends that you use this method in conjunction with the UI settings (such as buttons and sliders) in your app to improve the user experience. For example, call this method when the user clicks the Join Channel button, and then get the time spent during the video frame rendering process through the {\ttfamily on\+Video\+Rendering\+Tracing\+Result} callback, so as to optimize the indicators accordingly.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item If you have not called this method, the S\+DK tracks the rendering events of the video frames from the moment you call {\ttfamily join\+Channel(String token, String channel\+Id, int uid, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_channel_media_options}{Channel\+Media\+Options}} options)} to join the channel. You can call this method at an appropriate time according to the actual application scenario to set the starting position for tracking video rendering events.
\item After the local user leaves the current channel, the S\+DK automatically tracks the video rendering events from the moment you join a channel.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a769d9882314dd483fb8fe7b38122306c}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a769d9882314dd483fb8fe7b38122306c}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!setParametersEx@{setParametersEx}}
\index{setParametersEx@{setParametersEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{setParametersEx()}{setParametersEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+set\+Parameters\+Ex (\begin{DoxyParamCaption}\item[{String}]{parameters,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Provides technical preview functionalities or special customizations by configuring the S\+DK with J\+S\+ON options.

The J\+S\+ON options are not public by default. Agora is working on making commonly used J\+S\+ON options public in a standard way.


\begin{DoxyParams}{Parameters}
{\em parameters} & Parameter to be set as a J\+S\+ON string in the specified format. \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success. 
\item $<$0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1ff3ebf538b1d5f6cb9048b037b16afc}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a1ff3ebf538b1d5f6cb9048b037b16afc}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!getCallIdEx@{getCallIdEx}}
\index{getCallIdEx@{getCallIdEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{getCallIdEx()}{getCallIdEx()}}
{\footnotesize\ttfamily abstract String io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+get\+Call\+Id\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Gets the call ID with the connection ID. 

When a user joins a channel on a client, a {\ttfamily call\+Id} is generated to identify the call from the client. You can call this method to get {\ttfamily call\+Id}, and pass it in when calling methods such as {\ttfamily rate} and {\ttfamily complain}. Call timing\+: Call this method after joining a channel.


\begin{DoxyParams}{Parameters}
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a51bae476930846d0dc9181576ab5201d}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a51bae476930846d0dc9181576ab5201d}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!addHandlerEx@{addHandlerEx}}
\index{addHandlerEx@{addHandlerEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{addHandlerEx()}{addHandlerEx()}}
{\footnotesize\ttfamily abstract void io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+add\+Handler\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}]{handler,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Adds the \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}.


\begin{DoxyParams}{Parameters}
{\em handler} & The \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} instance. \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a130d640f1bcea05e066593d222373c6c}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a130d640f1bcea05e066593d222373c6c}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!removeHandlerEx@{removeHandlerEx}}
\index{removeHandlerEx@{removeHandlerEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{removeHandlerEx()}{removeHandlerEx()}}
{\footnotesize\ttfamily abstract void io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+remove\+Handler\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}}]{handler,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Removes the \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}}.


\begin{DoxyParams}{Parameters}
{\em handler} & The \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_i_rtc_engine_event_handler}{I\+Rtc\+Engine\+Event\+Handler}} instance. \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a00153b70b6e0a971e1cd7bffa2efbf55}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a00153b70b6e0a971e1cd7bffa2efbf55}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!enableEncryptionEx@{enableEncryptionEx}}
\index{enableEncryptionEx@{enableEncryptionEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{enableEncryptionEx()}{enableEncryptionEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+enable\+Encryption\+Ex (\begin{DoxyParamCaption}\item[{boolean}]{enabled,  }\item[{Encryption\+Config}]{config,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Enables or disables the built-\/in encryption. 

After the user leaves the channel, the S\+DK automatically disables the built-\/in encryption. To enable the built-\/in encryption, call this method before the user joins the channel again. Applicable scenarios\+: Scenarios with higher security requirements. Call timing\+: Call this method before joining a channel.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item All users within the same channel must set the same encryption configurations when calling this method.
\item If you enable the built-\/in encryption, you cannot use the Media Push function.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em enabled} & Whether to enable built-\/in encryption\+:
\begin{DoxyItemize}
\item true\+: Enable the built-\/in encryption.
\item false\+: (Default) Disable the built-\/in encryption. 
\end{DoxyItemize}\\
\hline
{\em config} & Built-\/in encryption configurations. See {\ttfamily Encryption\+Config}. \\
\hline
{\em connection} & The connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a23ddd10d4883c3e89c941eded0da649f}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a23ddd10d4883c3e89c941eded0da649f}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!sendAudioMetadataEx@{sendAudioMetadataEx}}
\index{sendAudioMetadataEx@{sendAudioMetadataEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{sendAudioMetadataEx()}{sendAudioMetadataEx()}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+send\+Audio\+Metadata\+Ex (\begin{DoxyParamCaption}\item[{byte\mbox{[}$\,$\mbox{]}}]{metadata,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}

Send audio metadata. \begin{DoxySince}{Since}
v4.\+3.\+1 
\end{DoxySince}

\begin{DoxyParams}{Parameters}
{\em metadata} & Audio Metadata. \\
\hline
{\em connection} & \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}} is used to control different connection instances. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. @technical preview 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab4e12b14581578f2c7559af6a48b4266}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_ab4e12b14581578f2c7559af6a48b4266}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!preloadEffectEx@{preloadEffectEx}}
\index{preloadEffectEx@{preloadEffectEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{preloadEffectEx()}{preloadEffectEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+preload\+Effect\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{sound\+Id,  }\item[{String}]{file\+Path }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Preloads a specified sound effect to the channel. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
Each time you call this method, you can only preload one sound effect file into memory. If you need to preload multiple sound files, please call this method multiple times. After preloading is complete, you can call {\ttfamily play\+Effect(int sound\+Id, String file\+Path, int loop\+Count, double pitch, double pan, double gain, boolean publish, int start\+Pos)} to play the preloaded sound effects, or call {\ttfamily play\+All\+Effects} to play all preloaded sound effects. Applicable scenarios\+: This method can be called in scenarios involving multiple channels.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item To ensure a smooth experience, the size of sound effect files should not exceed the limit.
\item Agora recommends that you call this method before joining a channel.
\item If preload\+Effect\+Ex is called before play\+Effect\+Ex is executed, the file resource will not be closed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will directly seek to play at the beginning.
\item If preload\+Effect\+Ex is not called before play\+Effect\+Ex is executed, the resource will be destroyed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will try to reopen the file and play it from the beginning.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & Connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em sound\+Id} & The audio effect ID. \\
\hline
{\em file\+Path} & The absolute path of the local file or the U\+RL of the online file. Supported audio formats include\+: mp3, mp4, m4a, aac, 3gp, mkv and wav.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f7d7f080cad50d1df706bfefc276588}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a6f7d7f080cad50d1df706bfefc276588}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!preloadEffectEx@{preloadEffectEx}}
\index{preloadEffectEx@{preloadEffectEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{preloadEffectEx()}{preloadEffectEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+preload\+Effect\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{sound\+Id,  }\item[{String}]{file\+Path,  }\item[{int}]{start\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Preloads a specified sound effect to a channel. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
Each time you call this method, you can only preload one sound effect file into memory. If you need to preload multiple sound files, please call this method multiple times. After preloading is complete, you can call {\ttfamily play\+Effect(int sound\+Id, String file\+Path, int loop\+Count, double pitch, double pan, double gain, boolean publish, int start\+Pos)} to play the preloaded sound effects, or call {\ttfamily play\+All\+Effects} to play all preloaded sound effects. Applicable scenarios\+: This method can be called in scenarios involving multiple channels.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item To ensure a smooth experience, the size of sound effect files should not exceed the limit.
\item Agora recommends that you call this method before joining a channel.
\item If preload\+Effect\+Ex is called before play\+Effect\+Ex is executed, the file resource will not be closed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will directly seek to play at the beginning.
\item If preload\+Effect\+Ex is not called before play\+Effect\+Ex is executed, the resource will be destroyed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will try to reopen the file and play it from the beginning.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & Connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em sound\+Id} & The audio effect ID. \\
\hline
{\em file\+Path} & The absolute path of the local file or the U\+RL of the online file. Supported audio formats include\+: mp3, mp4, m4a, aac, 3gp, mkv and wav. \\
\hline
{\em start\+Pos} & The playback position (ms) of the audio effect file.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a102a286007985ae08147cddfef4a44e8}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a102a286007985ae08147cddfef4a44e8}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!playEffectEx@{playEffectEx}}
\index{playEffectEx@{playEffectEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{playEffectEx()}{playEffectEx()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+play\+Effect\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{sound\+Id,  }\item[{String}]{file\+Path,  }\item[{int}]{loop\+Count,  }\item[{double}]{pitch,  }\item[{double}]{pan,  }\item[{double}]{gain,  }\item[{boolean}]{publish }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Plays a specified sound effect in the channel. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
This method allows you to set whether to publish sound effects in a channel. In order to play multiple sound files simultaneously, simply call the method multiple times with different {\ttfamily sound\+Id} and {\ttfamily file\+Path} parameters. After calling {\ttfamily preload\+Effect} to preload the sound effect, you can call this method to play the specified sound effect to all users in the channel. Each call to this method can only play one sound effect. To play multiple sound effects simultaneously, please call this method multiple times. Applicable scenarios\+: This method can be called in scenarios involving multiple channels.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Agora recommends not playing more than three sound effects at the same time.
\item The sound effect ID and file path in this method must be consistent with those in the {\ttfamily preload\+Effect\+Ex} method.
\item If preload\+Effect\+Ex is called before play\+Effect\+Ex is executed, the file resource will not be closed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will directly seek to play at the beginning.
\item If preload\+Effect\+Ex is not called before play\+Effect\+Ex is executed, the resource will be destroyed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will try to reopen the file and play it from the beginning.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & Connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em sound\+Id} & The audio effect ID. \\
\hline
{\em file\+Path} & The absolute path of the local file or the U\+RL of the online file. Supported audio formats\+: mp3, mp4, m4a, aac, 3gp, mkv and wav. \\
\hline
{\em loop\+Count} & Number of times the sound effect to be looped\+:
\begin{DoxyItemize}
\item {\ttfamily -\/1}\+: Loop infinitely until calling {\ttfamily stop\+Effect} or {\ttfamily stop\+All\+Effects}.
\item {\ttfamily 0}\+: Play once.
\item {\ttfamily 1}\+: Play twice. 
\end{DoxyItemize}\\
\hline
{\em pitch} & The pitch of the audio effect. The range is from 0.\+5 to 2.\+0, with a default value of 1.\+0 (original pitch). The lower the value, the lower the pitch. \\
\hline
{\em pan} & The spatial position of the audio effect. The range of values is from -\/1.\+0 to 1.\+0\+:
\begin{DoxyItemize}
\item {\ttfamily -\/1.\+0}\+: The audio effect is heard on the left of the user.
\item {\ttfamily 0.\+0}\+: The audio effect is heard in front of the user.
\item {\ttfamily 1.\+0}\+: The audio effect is heard on the right of the user. 
\end{DoxyItemize}\\
\hline
{\em gain} & The volume of the audio effect. The value range is from 0.\+0 to 100.\+0, with a default value of 100 (original volume). The smaller the value, the lower the volume. \\
\hline
{\em publish} & Whether to publish the audio effect in the channel\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Publish the audio effect in the channel.
\item {\ttfamily false}\+: Do not publish the audio effect in the channel.
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5ebb4cfb6317123524dee576bd597fc9}\label{classio_1_1agora_1_1rtc2_1_1_rtc_engine_ex_a5ebb4cfb6317123524dee576bd597fc9}} 
\index{io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}!playEffectEx@{playEffectEx}}
\index{playEffectEx@{playEffectEx}!io.agora.rtc2.RtcEngineEx@{io.agora.rtc2.RtcEngineEx}}
\doxysubsubsection{\texorpdfstring{playEffectEx()}{playEffectEx()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily abstract int io.\+agora.\+rtc2.\+Rtc\+Engine\+Ex.\+play\+Effect\+Ex (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}]{connection,  }\item[{int}]{sound\+Id,  }\item[{String}]{file\+Path,  }\item[{int}]{loop\+Count,  }\item[{double}]{pitch,  }\item[{double}]{pan,  }\item[{double}]{gain,  }\item[{boolean}]{publish,  }\item[{int}]{start\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [abstract]}}



Plays a specified sound effect in a channel. 

\begin{DoxySince}{Since}
v4.\+6.\+0
\end{DoxySince}
You can call this method to play a specified sound effect to all users in the channel. Each call to this method can only play one sound effect. To play multiple sound effects simultaneously, please call this method multiple times. This method allows you to set whether to publish sound effects in a channel. In order to play multiple sound files simultaneously, simply call the method multiple times with different {\ttfamily sound\+Id} and {\ttfamily file\+Path} parameters. Applicable scenarios\+: This method can be called in scenarios involving multiple channels.

\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Agora recommends not playing more than three sound effects at the same time.
\item The sound effect ID and file path in this method must be consistent with those in the {\ttfamily preload\+Effect\+Ex} method.
\item If preload\+Effect\+Ex is called before play\+Effect\+Ex is executed, the file resource will not be closed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will directly seek to play at the beginning.
\item If preload\+Effect\+Ex is not called before play\+Effect\+Ex is executed, the resource will be destroyed after play\+Effect\+Ex. The next time play\+Effect\+Ex is executed, it will try to reopen the file and play it from the beginning.
\end{DoxyItemize}
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em connection} & Connection information. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1_rtc_connection}{Rtc\+Connection}}}. \\
\hline
{\em sound\+Id} & The audio effect ID. \\
\hline
{\em file\+Path} & The absolute path of the local file or the U\+RL of the online file. Supported audio formats include\+: mp3, mp4, m4a, aac, 3gp, mkv and wav. \\
\hline
{\em loop\+Count} & Number of times the sound effect to be looped\+:
\begin{DoxyItemize}
\item {\ttfamily -\/1}\+: Loop infinitely until calling {\ttfamily stop\+Effect} or {\ttfamily stop\+All\+Effects}.
\item {\ttfamily 0}\+: Play once.
\item {\ttfamily 1}\+: Play twice. 
\end{DoxyItemize}\\
\hline
{\em pitch} & The pitch of the audio effect. The range is from 0.\+5 to 2.\+0, with a default value of 1.\+0 (original pitch). The lower the value, the lower the pitch. \\
\hline
{\em pan} & The spatial position of the audio effect. The range of values is from -\/1.\+0 to 1.\+0\+:
\begin{DoxyItemize}
\item {\ttfamily -\/1.\+0}\+: The audio effect is heard on the left of the user.
\item {\ttfamily 0.\+0}\+: The audio effect is heard in front of the user.
\item {\ttfamily 1.\+0}\+: The audio effect is heard on the right of the user. 
\end{DoxyItemize}\\
\hline
{\em gain} & The volume of the audio effect. The value range is from 0.\+0 to 100.\+0, with a default value of 100 (original volume). The smaller the value, the lower the volume. \\
\hline
{\em publish} & Whether to publish the audio effect in the channel\+:
\begin{DoxyItemize}
\item {\ttfamily true}\+: Publish the audio effect in the channel.
\item {\ttfamily false}\+: Do not publish the audio effect in the channel. 
\end{DoxyItemize}\\
\hline
{\em start\+Pos} & The playback position (ms) of the audio effect file.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\begin{DoxyItemize}
\item 0\+: Success.
\item $<$ 0\+: Failure. 
\end{DoxyItemize}
\end{DoxyReturn}
