ZegoCopyrightedMusic class abstract
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearCache(
) → Future< void> - Clear cache.
-
download(
String resourceID) → Future< ZegoCopyrightedMusicDownloadResult> - Download song or accompaniment.
-
getAverageScore(
String resourceID) → Future< int> - Get average score.
-
getCacheSize(
) → Future< int> - Get cache size.
-
getCurrentPitch(
String resourceID) → Future< int> - Get real-time pitch data.
-
getDuration(
String resourceID) → Future< int> - Get the playing time of a song or accompaniment file.
-
getKrcLyricByToken(
String krcToken) → Future< ZegoCopyrightedMusicGetKrcLyricByTokenResult> - Get lyrics in krc format.
-
getLrcLyric(
String songID) → Future< ZegoCopyrightedMusicGetLrcLyricResult> - Get lyrics in lrc format.
-
getMusicByToken(
→ Future< )ZegoCopyrightedMusicGetMusicByTokenResult> - Get a song or accompaniment.
-
getPreviousScore(
String resourceID) → Future< int> - Get the score of the previous sentence.
-
getStandardPitch(
String resourceID) → Future< ZegoCopyrightedMusicGetStandardPitchResult> - Get standard pitch data.
-
getTotalScore(
String resourceID) → Future< int> - Get total score .
-
initCopyrightedMusic(
ZegoCopyrightedMusicConfig config) → Future< ZegoCopyrightedMusicInitResult> - Initialize the copyrighted music module.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseScore(
String resourceID) → Future< int> - Pause scoring.
-
queryCache(
String songID, ZegoCopyrightedMusicType type) → Future< bool> - Query the resource's cache is existed or not.
-
requestAccompaniment(
ZegoCopyrightedMusicRequestConfig config) → Future< ZegoCopyrightedMusicRequestAccompanimentResult> - Request accompaniment.
-
requestAccompanimentClip(
ZegoCopyrightedMusicRequestConfig config) → Future< ZegoCopyrightedMusicRequestAccompanimentClipResult> - Request accompaniment clip.
-
requestSong(
ZegoCopyrightedMusicRequestConfig config) → Future< ZegoCopyrightedMusicRequestSongResult> - Request a song.
-
resetScore(
String resourceID) → Future< int> - Reset scoring.
-
resumeScore(
String resourceID) → Future< int> - Resume scoring.
-
sendExtendedRequest(
String command, String params) → Future< ZegoCopyrightedMusicSendExtendedRequestResult> - Send extended feature request.
-
startScore(
String resourceID, int pitchValueInterval) → Future< int> - Start scoring.
-
stopScore(
String resourceID) → Future< int> - Stop scoring.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited