\hypertarget{classagora_1_1rtc_1_1_i_media_relay_observer}{}\doxysection{agora\+::rtc\+::I\+Media\+Relay\+Observer Class Reference}
\label{classagora_1_1rtc_1_1_i_media_relay_observer}\index{agora::rtc::IMediaRelayObserver@{agora::rtc::IMediaRelayObserver}}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{classagora_1_1rtc_1_1_i_media_relay_observer_afb5c621fd6eca7d547a0a4b6c8775ee1}{on\+Channel\+Media\+Relay\+State\+Changed}} (C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+TE state, C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+E\+R\+R\+OR code)
\end{DoxyCompactItemize}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classagora_1_1rtc_1_1_i_media_relay_observer_afb5c621fd6eca7d547a0a4b6c8775ee1}\label{classagora_1_1rtc_1_1_i_media_relay_observer_afb5c621fd6eca7d547a0a4b6c8775ee1}} 
\index{agora::rtc::IMediaRelayObserver@{agora::rtc::IMediaRelayObserver}!onChannelMediaRelayStateChanged@{onChannelMediaRelayStateChanged}}
\index{onChannelMediaRelayStateChanged@{onChannelMediaRelayStateChanged}!agora::rtc::IMediaRelayObserver@{agora::rtc::IMediaRelayObserver}}
\doxysubsubsection{\texorpdfstring{onChannelMediaRelayStateChanged()}{onChannelMediaRelayStateChanged()}}
{\footnotesize\ttfamily virtual void agora\+::rtc\+::\+I\+Media\+Relay\+Observer\+::on\+Channel\+Media\+Relay\+State\+Changed (\begin{DoxyParamCaption}\item[{C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+TE}]{state,  }\item[{C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+E\+R\+R\+OR}]{code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Occurs when the state of the media stream relay changes.

The S\+DK returns the state of the current media relay with any error message.


\begin{DoxyParams}{Parameters}
{\em state} & The state code in \#\+C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+S\+T\+A\+TE. \\
\hline
{\em code} & The error code in \#\+C\+H\+A\+N\+N\+E\+L\+\_\+\+M\+E\+D\+I\+A\+\_\+\+R\+E\+L\+A\+Y\+\_\+\+E\+R\+R\+OR. \\
\hline
\end{DoxyParams}
