onSongSimpleInfoResult
Callback for retrieving detailed music resource information.
void onSongSimpleInfoResult(String requestId, long songCode, String simpleInfo, int reason);
Trigger Timing
This callback is triggered after calling getSongSimpleInfo.
Parameters
- requestId
- Request ID, used to uniquely identify this request.
- songCode
- The identifier of the music resource.
- simpleInfo
- Information related to the music resource, including:
- Start and end time (in milliseconds) of the chorus segment.
- Download URL of the chorus lyrics.
- Duration of the chorus segment (in milliseconds).
- Song title.
- Artist name.
- reason
- Request status code from Music Content Center:
MUSIC_CONTENT_CENTER_STATE_REASON_OK(0): Request successful.MUSIC_CONTENT_CENTER_STATE_REASON_ERROR(1): General error, no specific reason.MUSIC_CONTENT_CENTER_STATE_REASON_GATEWAY(2): Gateway error. Possible reasons include:- The current temporary token has expired. Please generate a new token.
- The provided token is invalid. Please ensure you are using an RTM token.
- Network error. Please check your network connection.
MUSIC_CONTENT_CENTER_STATE_REASON_PERMISSION_AND_RESOURCE(3): Permission error or music resource not found. Please ensure your project has enabled Music Content Center access. Contact technical support if needed.MUSIC_CONTENT_CENTER_STATE_REASON_INTERNAL_DATA_PARSE(4): Internal data parsing error. Please contact technical support.MUSIC_CONTENT_CENTER_STATE_REASON_MUSIC_LOADING(5): Error occurred while loading music resource. Please contact technical support.MUSIC_CONTENT_CENTER_STATE_REASON_MUSIC_DECRYPTION(6): Error occurred while decrypting music resource. Please contact technical support.MUSIC_CONTENT_CENTER_STATE_REASON_HTTP_INTERNAL(7): Internal HTTP error. Please try again later.