getSongSimpleInfo
Retrieves detailed information of the specified music resource.
virtual int getSongSimpleInfo(agora::util::AString& requestId, int64_t songCode) = 0;
Before calling this method, you need to obtain the song code of the target music resource. You can do this by calling getMusicCollectionByMusicChartId or searchMusic, and retrieve the song code from the onMusicCollectionResult callback triggered by these methods. After calling this method, the SDK triggers the onSongSimpleInfoResult callback to return the detailed information of the music resource.
Parameters
- requestId
- Request ID, used to uniquely identify the request.
- songCode
- The song code of the music resource, used to identify the music.
Return Values
- 0: Success.
- < 0: Failure.