onPreLoadEvent

Callback for events related to preloading music resources.

virtual void onPreLoadEvent(const char* requestId, int64_t songCode, int percent, const char* lyricUrl, PreloadState state, MusicContentCenterStateReason reason) = 0;

After calling preload to preload a music resource, the SDK triggers this callback.

Parameters

requestId
The request ID, used to identify this request uniquely.
songCode
The ID of the music resource, used to identify a music item.
percent
The current loading progress of the music resource, ranging from [0, 100].
lyricUrl
Download URL for the lyrics.
state
The current loading state of the music resource. See PreloadState.
reason
Request status code from the music content center. See MusicContentCenterStateReason.