\hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler}{}\doxysection{io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler Interface Reference}
\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler}\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a77215573b51137c8e6823c537af5b629}{on\+Pre\+Load\+Event}} (String request\+Id, long song\+Code, int percent, String lyric\+Url, int state, int reason)
\begin{DoxyCompactList}\small\item\em Reports the event of preloading music resources. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_afceddbf723d7ba8affbb082628df8525}{on\+Music\+Collection\+Result}} (String request\+Id, int page, int page\+Size, int total, \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}}\mbox{[}$\,$\mbox{]} list, int reason)
\begin{DoxyCompactList}\small\item\em Callback for retrieving a list of music resources. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a2cb2c460c46df60773f532f55e4a8297}{on\+Music\+Charts\+Result}} (String request\+Id, \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music_chart_info}{Music\+Chart\+Info}}\mbox{[}$\,$\mbox{]} list, int reason)
\begin{DoxyCompactList}\small\item\em Callback for retrieving music charts. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a11ec5f0af019252df0bbabd11229f0d5}{on\+Lyric\+Result}} (String request\+Id, long song\+Code, String lyric\+Url, int reason)
\begin{DoxyCompactList}\small\item\em Callback for lyric download U\+RL. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a4bd3113af9bed235306e49203c6ac1ce}{on\+Song\+Simple\+Info\+Result}} (String request\+Id, long song\+Code, String simple\+Info, int reason)
\begin{DoxyCompactList}\small\item\em Callback for detailed information of a music resource. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a77215573b51137c8e6823c537af5b629}\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a77215573b51137c8e6823c537af5b629}} 
\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}!onPreLoadEvent@{onPreLoadEvent}}
\index{onPreLoadEvent@{onPreLoadEvent}!io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsubsection{\texorpdfstring{onPreLoadEvent()}{onPreLoadEvent()}}
{\footnotesize\ttfamily void io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler.\+on\+Pre\+Load\+Event (\begin{DoxyParamCaption}\item[{String}]{request\+Id,  }\item[{long}]{song\+Code,  }\item[{int}]{percent,  }\item[{String}]{lyric\+Url,  }\item[{int}]{state,  }\item[{int}]{reason }\end{DoxyParamCaption})}



Reports the event of preloading music resources. 

After you call the {\ttfamily preload(long song\+Code, String json\+Option)} or {\ttfamily preload(long song\+Code)} method to preload a music resource, the S\+DK triggers this callback.


\begin{DoxyParams}{Parameters}
{\em request\+Id} & The request ID. A unique identifier for this request. \\
\hline
{\em song\+Code} & The ID of the music resource, used to identify a music asset. \\
\hline
{\em percent} & The current loading progress of the music resource, with a value range of \mbox{[}0,100\mbox{]}. \\
\hline
{\em lyric\+Url} & The download U\+RL of the lyrics. \\
\hline
{\em state} & The current loading state of the music resource\+:
\begin{DoxyItemize}
\item 0\+: \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} resource is fully loaded.
\item 1\+: \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} resource failed to load.
\item 2\+: \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} resource is loading. 
\end{DoxyItemize}\\
\hline
{\em reason} & The request status code from the \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center\+:
\begin{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK (0)\+: Request succeeded.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+E\+R\+R\+OR (1)\+: General error with no specific attribution.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+G\+A\+T\+E\+W\+AY (2)\+: Gateway error. Possible causes include\+:
\begin{DoxyItemize}
\item The current Temporary Token has expired. Please regenerate the Token.
\item The provided Token is invalid. Make sure you are using an R\+TM Token.
\item Network error. Please check your network connection.
\end{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+A\+N\+D\+\_\+\+R\+E\+S\+O\+U\+R\+CE (3)\+: Permission error or music resource does not exist. Make sure your project has enabled access to the \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+D\+A\+T\+A\+\_\+\+P\+A\+R\+SE (4)\+: Internal data parsing error. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+L\+O\+A\+D\+I\+NG (5)\+: Error occurred while loading the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+D\+E\+C\+R\+Y\+P\+T\+I\+ON (6)\+: Error occurred while decrypting the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+H\+T\+T\+P\+\_\+\+I\+N\+T\+E\+R\+N\+AL (7)\+: Internal H\+T\+TP error. Please try the request again later. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_afceddbf723d7ba8affbb082628df8525}\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_afceddbf723d7ba8affbb082628df8525}} 
\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}!onMusicCollectionResult@{onMusicCollectionResult}}
\index{onMusicCollectionResult@{onMusicCollectionResult}!io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsubsection{\texorpdfstring{onMusicCollectionResult()}{onMusicCollectionResult()}}
{\footnotesize\ttfamily void io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler.\+on\+Music\+Collection\+Result (\begin{DoxyParamCaption}\item[{String}]{request\+Id,  }\item[{int}]{page,  }\item[{int}]{page\+Size,  }\item[{int}]{total,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}}\mbox{[}$\,$\mbox{]}}]{list,  }\item[{int}]{reason }\end{DoxyParamCaption})}



Callback for retrieving a list of music resources. 

This callback is triggered by the S\+DK when you call the {\ttfamily get\+Music\+Collection\+By\+Music\+Chart\+Id(int music\+Chart\+Id, int page, int page\+Size)} method to retrieve a list of music resources from a specific chart, or the {\ttfamily search\+Music(\+String keyword, int page, int page\+Size)} method to search for music resources. It reports detailed information about the music resources in the chart.


\begin{DoxyParams}{Parameters}
{\em request\+Id} & The request ID. A unique identifier for this request. \\
\hline
{\em reason} & The request status code from the music content center\+:
\begin{DoxyItemize}
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK (0)}\+: Request succeeded.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+E\+R\+R\+OR (1)}\+: General error without specific attribution.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+G\+A\+T\+E\+W\+AY (2)}\+: Gateway error. Possible causes include\+:
\begin{DoxyItemize}
\item The current Temporary Token has expired. Please regenerate the Temporary Token.
\item The provided Temporary Token is invalid. Please ensure you are using an R\+TM Token.
\item Network error. Please check your network connection.
\end{DoxyItemize}
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+A\+N\+D\+\_\+\+R\+E\+S\+O\+U\+R\+CE (3)}\+: Permission error or music resource not found. Please ensure your project has enabled access to the Agora \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center. Contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+D\+A\+T\+A\+\_\+\+P\+A\+R\+SE (4)}\+: Internal data parsing error. Contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+L\+O\+A\+D\+I\+NG (5)}\+: Error occurred while loading music resources. Contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+D\+E\+C\+R\+Y\+P\+T\+I\+ON (6)}\+: Error occurred while decrypting music resources. Contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+H\+T\+T\+P\+\_\+\+I\+N\+T\+E\+R\+N\+AL (7)}\+: Internal H\+T\+TP error. Please try again later. 
\end{DoxyItemize}\\
\hline
{\em page} & The current page number, starting from 1 by default. \\
\hline
{\em page\+Size} & The maximum number of music resources displayed per page, up to 50. \\
\hline
{\em total} & The total number of music resources in the list. \\
\hline
{\em list} & Detailed information about the list of music resources. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a2cb2c460c46df60773f532f55e4a8297}\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a2cb2c460c46df60773f532f55e4a8297}} 
\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}!onMusicChartsResult@{onMusicChartsResult}}
\index{onMusicChartsResult@{onMusicChartsResult}!io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsubsection{\texorpdfstring{onMusicChartsResult()}{onMusicChartsResult()}}
{\footnotesize\ttfamily void io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler.\+on\+Music\+Charts\+Result (\begin{DoxyParamCaption}\item[{String}]{request\+Id,  }\item[{\mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music_chart_info}{Music\+Chart\+Info}}\mbox{[}$\,$\mbox{]}}]{list,  }\item[{int}]{reason }\end{DoxyParamCaption})}



Callback for retrieving music charts. 

This callback is triggered after you call the {\ttfamily get\+Music\+Charts} method to retrieve all available music charts.


\begin{DoxyParams}{Parameters}
{\em request\+Id} & The request ID. A unique identifier for this request. \\
\hline
{\em reason} & The request status code from the music content center\+:
\begin{DoxyItemize}
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK} (0)\+: Request succeeded.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+E\+R\+R\+OR} (1)\+: General error with no specific cause.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+G\+A\+T\+E\+W\+AY} (2)\+: Gateway error. Possible reasons include\+:
\begin{DoxyItemize}
\item The current Token has expired. Please regenerate the Token.
\item The provided Token is invalid. Make sure you are using an R\+TM Token.
\item Network error. Please check your network connection.
\end{DoxyItemize}
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+A\+N\+D\+\_\+\+R\+E\+S\+O\+U\+R\+CE} (3)\+: Permission error or music resource not found. Make sure your project has enabled access to the Agora \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center. Please contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+D\+A\+T\+A\+\_\+\+P\+A\+R\+SE} (4)\+: Internal data parsing error. Please contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+L\+O\+A\+D\+I\+NG} (5)\+: Error occurred while loading music resources. Please contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+D\+E\+C\+R\+Y\+P\+T\+I\+ON} (6)\+: Error occurred while decrypting music resources. Please contact technical support.
\item {\ttfamily M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+H\+T\+T\+P\+\_\+\+I\+N\+T\+E\+R\+N\+AL} (7)\+: Internal H\+T\+TP error. Please try again later. 
\end{DoxyItemize}\\
\hline
{\em list} & The list of currently playable music charts. See {\ttfamily \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music_chart_info}{Music\+Chart\+Info}}} for details. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a11ec5f0af019252df0bbabd11229f0d5}\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a11ec5f0af019252df0bbabd11229f0d5}} 
\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}!onLyricResult@{onLyricResult}}
\index{onLyricResult@{onLyricResult}!io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsubsection{\texorpdfstring{onLyricResult()}{onLyricResult()}}
{\footnotesize\ttfamily void io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler.\+on\+Lyric\+Result (\begin{DoxyParamCaption}\item[{String}]{request\+Id,  }\item[{long}]{song\+Code,  }\item[{String}]{lyric\+Url,  }\item[{int}]{reason }\end{DoxyParamCaption})}



Callback for lyric download U\+RL. 

After you call {\ttfamily get\+Lyric} to retrieve the download U\+RL for the specified song\textquotesingle{}s lyrics, the S\+DK triggers this callback.


\begin{DoxyParams}{Parameters}
{\em request\+Id} & The request ID. A unique identifier for this request. \\
\hline
{\em song\+Code} & The code of the music resource, used to identify the music resource. \\
\hline
{\em lyric\+Url} & The download U\+RL for the lyrics. \\
\hline
{\em reason} & The request status code from the \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center\+:
\begin{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK (0)\+: Request succeeded.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+E\+R\+R\+OR (1)\+: General error without a specific cause.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+G\+A\+T\+E\+W\+AY (2)\+: Gateway error. Possible reasons include\+:
\begin{DoxyItemize}
\item The current Temporary Token has expired. Please regenerate the Token.
\item The provided Token is invalid. Make sure you are using an R\+TM Token.
\item Network error. Please check your network connection.
\end{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+A\+N\+D\+\_\+\+R\+E\+S\+O\+U\+R\+CE (3)\+: Permission error or the music resource does not exist. Make sure your project has enabled the \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center permission. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+D\+A\+T\+A\+\_\+\+P\+A\+R\+SE (4)\+: Internal data parsing error. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+L\+O\+A\+D\+I\+NG (5)\+: Error occurred while loading the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+D\+E\+C\+R\+Y\+P\+T\+I\+ON (6)\+: Error occurred while decrypting the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+H\+T\+T\+P\+\_\+\+I\+N\+T\+E\+R\+N\+AL (7)\+: Internal H\+T\+TP error. Please try the request again later. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a4bd3113af9bed235306e49203c6ac1ce}\label{interfaceio_1_1agora_1_1musiccontentcenter_1_1_i_music_content_center_event_handler_a4bd3113af9bed235306e49203c6ac1ce}} 
\index{io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}!onSongSimpleInfoResult@{onSongSimpleInfoResult}}
\index{onSongSimpleInfoResult@{onSongSimpleInfoResult}!io.agora.musiccontentcenter.IMusicContentCenterEventHandler@{io.agora.musiccontentcenter.IMusicContentCenterEventHandler}}
\doxysubsubsection{\texorpdfstring{onSongSimpleInfoResult()}{onSongSimpleInfoResult()}}
{\footnotesize\ttfamily void io.\+agora.\+musiccontentcenter.\+I\+Music\+Content\+Center\+Event\+Handler.\+on\+Song\+Simple\+Info\+Result (\begin{DoxyParamCaption}\item[{String}]{request\+Id,  }\item[{long}]{song\+Code,  }\item[{String}]{simple\+Info,  }\item[{int}]{reason }\end{DoxyParamCaption})}



Callback for detailed information of a music resource. 

This callback is triggered after you call {\ttfamily get\+Song\+Simple\+Info} to retrieve detailed information about a music resource.


\begin{DoxyParams}{Parameters}
{\em request\+Id} & The request ID. A unique identifier for this request. \\
\hline
{\em song\+Code} & The identifier of the music resource. \\
\hline
{\em simple\+Info} & The related information of the music resource, including\+:
\begin{DoxyItemize}
\item Start and end time (ms) of the chorus segment
\item Download U\+RL for the chorus lyrics
\item Duration (ms) of the chorus segment
\item Song title
\item Artist name 
\end{DoxyItemize}\\
\hline
{\em reason} & The request status code from the \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center\+:
\begin{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+OK (0)\+: Request succeeded.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+E\+R\+R\+OR (1)\+: General error with no specific cause.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+G\+A\+T\+E\+W\+AY (2)\+: Gateway error. Possible causes include\+:
\begin{DoxyItemize}
\item The current Temporary Token has expired. Please generate a new one.
\item The provided Token is invalid. Make sure you are using an R\+TM Token.
\item Network error. Please check your network connection.
\end{DoxyItemize}
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+P\+E\+R\+M\+I\+S\+S\+I\+O\+N\+\_\+\+A\+N\+D\+\_\+\+R\+E\+S\+O\+U\+R\+CE (3)\+: Permission error or the music resource does not exist. Make sure your project has enabled \mbox{\hyperlink{classio_1_1agora_1_1musiccontentcenter_1_1_music}{Music}} Content Center permissions. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+D\+A\+T\+A\+\_\+\+P\+A\+R\+SE (4)\+: Internal data parsing error. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+L\+O\+A\+D\+I\+NG (5)\+: Error occurred while loading the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+M\+U\+S\+I\+C\+\_\+\+D\+E\+C\+R\+Y\+P\+T\+I\+ON (6)\+: Error occurred while decrypting the music resource. Please contact technical support.
\item M\+U\+S\+I\+C\+\_\+\+C\+O\+N\+T\+E\+N\+T\+\_\+\+C\+E\+N\+T\+E\+R\+\_\+\+S\+T\+A\+T\+E\+\_\+\+R\+E\+A\+S\+O\+N\+\_\+\+H\+T\+T\+P\+\_\+\+I\+N\+T\+E\+R\+N\+AL (7)\+: Internal H\+T\+TP error. Please try again later. 
\end{DoxyItemize}\\
\hline
\end{DoxyParams}
