downloadMusic method
@detail api @author lihuan.wuti2ha @brief Download music. @param musicId Music ID. @return Download task ID. @note - If the music is successfully downloaded, you will receive ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult}. - If the music fails to download, you will receive ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode}. - When the music download progress is updated, you will receive ktvManager:onDownloadMusicProgress:progress:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadMusicProgress:progress}.
Implementation
FutureOr<int> downloadMusic(NSString musicId) async {
return await nativeCall('downloadMusic:', [musicId]);
}