\hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration}{}\doxysection{io.\+agora.\+rtc2.\+video.\+Channel\+Media\+Relay\+Configuration Class Reference}
\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration}\index{io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}}


Configuration of cross channel media relay.  


\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_aa80f0de927d17fe6b2ce464c06b2ff93}{Channel\+Media\+Relay\+Configuration}} ()
\item 
void \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_adad7930ca3f38f81ef660ae3079dfff7}{set\+Src\+Channel\+Info}} (\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}} src\+Info)
\item 
void \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a97a6de89e0379b5cc383e064f6590e1e}{set\+Dest\+Channel\+Info}} (String channel\+Name, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}} dest\+Info)
\item 
void \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a45b0db62ea83eabb08a1f2006fe39b0b}{remove\+Dest\+Channel\+Info}} (String channel\+Name)
\item 
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_aca7c8adec7544e844c48de840b019362}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_aca7c8adec7544e844c48de840b019362}} 
\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}} {\bfseries get\+Src\+Channel\+Media\+Info} ()
\item 
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_ab4d4eb4564e13e35688b4d77d9d91ca1}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_ab4d4eb4564e13e35688b4d77d9d91ca1}} 
Map$<$ String, \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}} $>$ {\bfseries get\+Dest\+Channel\+Media\+Infos} ()
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Configuration of cross channel media relay. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_aa80f0de927d17fe6b2ce464c06b2ff93}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_aa80f0de927d17fe6b2ce464c06b2ff93}} 
\index{io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}!ChannelMediaRelayConfiguration@{ChannelMediaRelayConfiguration}}
\index{ChannelMediaRelayConfiguration@{ChannelMediaRelayConfiguration}!io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}}
\doxysubsubsection{\texorpdfstring{ChannelMediaRelayConfiguration()}{ChannelMediaRelayConfiguration()}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Channel\+Media\+Relay\+Configuration.\+Channel\+Media\+Relay\+Configuration (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

The configuration of the channel media relay. 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_adad7930ca3f38f81ef660ae3079dfff7}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_adad7930ca3f38f81ef660ae3079dfff7}} 
\index{io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}!setSrcChannelInfo@{setSrcChannelInfo}}
\index{setSrcChannelInfo@{setSrcChannelInfo}!io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}}
\doxysubsubsection{\texorpdfstring{setSrcChannelInfo()}{setSrcChannelInfo()}}
{\footnotesize\ttfamily void io.\+agora.\+rtc2.\+video.\+Channel\+Media\+Relay\+Configuration.\+set\+Src\+Channel\+Info (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}}}]{src\+Info }\end{DoxyParamCaption})}

Sets the information of the source channel. 
\begin{DoxyParams}{Parameters}
{\em src\+Info} & The information of the source channel\+: \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}}. It contains the following members\+:
\begin{DoxyItemize}
\item {\ttfamily channel\+Name}\+: The name of the source channel. The default value is N\+U\+LL, which means the S\+DK applies the name of the current channel.
\item {\ttfamily uid}\+: ID of the host whose media stream you want to relay. The default value is 0, which means the S\+DK generates a random U\+ID. You must set it as 0.
\item {\ttfamily token}\+: The token for joining the source channel. It is generated with the {\ttfamily channel\+Name} and {\ttfamily uid} you set in {\ttfamily src\+Info}.
\begin{DoxyItemize}
\item If you have not enabled the App Certificate, set this parameter as the default value N\+U\+LL, which means the S\+DK applies the App ID.
\item If you have enabled the App Certificate, you must use the token generated with the {\ttfamily channel\+Name} and {\ttfamily uid}, and the {\ttfamily uid} must be set as 0. 
\end{DoxyItemize}
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a97a6de89e0379b5cc383e064f6590e1e}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a97a6de89e0379b5cc383e064f6590e1e}} 
\index{io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}!setDestChannelInfo@{setDestChannelInfo}}
\index{setDestChannelInfo@{setDestChannelInfo}!io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}}
\doxysubsubsection{\texorpdfstring{setDestChannelInfo()}{setDestChannelInfo()}}
{\footnotesize\ttfamily void io.\+agora.\+rtc2.\+video.\+Channel\+Media\+Relay\+Configuration.\+set\+Dest\+Channel\+Info (\begin{DoxyParamCaption}\item[{String}]{channel\+Name,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}}}]{dest\+Info }\end{DoxyParamCaption})}

Sets the information of the destination channel.

If you want to relay the media stream to multiple channels, call this method as many times (at most four). 
\begin{DoxyParams}{Parameters}
{\em channel\+Name} & The name of the destination channel. Ensure that the value of this parameter is the same as that of the {\ttfamily channel\+Name} member in {\ttfamily dest\+Info}. \\
\hline
{\em dest\+Info} & The information of the destination channel\+: \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_info}{Channel\+Media\+Info}}. It contains the following members\+:
\begin{DoxyItemize}
\item {\ttfamily channel\+Name}\+: The name of the destination channel.
\item {\ttfamily uid}\+: ID of the host in the destination channel. The value ranges from 0 to (2\textsuperscript{32}-\/1). To avoid U\+ID conflicts, this uid must be different from any other U\+I\+Ds in the destination channel. The default value is 0, which means the S\+DK generates a random U\+ID.
\item {\ttfamily token}\+: The token for joining the destination channel. It is generated with the {\ttfamily channel\+Name} and {\ttfamily uid} you set in {\ttfamily dest\+Info}.
\begin{DoxyItemize}
\item If you have not enabled the App Certificate, set this parameter as the default value N\+U\+LL, which means the S\+DK applies the App ID.
\item If you have enabled the App Certificate, you must use the token generated with the {\ttfamily channel\+Name} and {\ttfamily uid}. 
\end{DoxyItemize}
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a45b0db62ea83eabb08a1f2006fe39b0b}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_channel_media_relay_configuration_a45b0db62ea83eabb08a1f2006fe39b0b}} 
\index{io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}!removeDestChannelInfo@{removeDestChannelInfo}}
\index{removeDestChannelInfo@{removeDestChannelInfo}!io.agora.rtc2.video.ChannelMediaRelayConfiguration@{io.agora.rtc2.video.ChannelMediaRelayConfiguration}}
\doxysubsubsection{\texorpdfstring{removeDestChannelInfo()}{removeDestChannelInfo()}}
{\footnotesize\ttfamily void io.\+agora.\+rtc2.\+video.\+Channel\+Media\+Relay\+Configuration.\+remove\+Dest\+Channel\+Info (\begin{DoxyParamCaption}\item[{String}]{channel\+Name }\end{DoxyParamCaption})}

Removes the destination channel.


\begin{DoxyParams}{Parameters}
{\em channel\+Name} & The name of the destination channel. \\
\hline
\end{DoxyParams}
