seekMusic method
@detail api @author lihuan.wuti2ha @brief Sets the starting position of the music file. @param musicId Music ID. @param position The starting position of the music file in milliseconds. The value must be less than the total length of the music. @note - The music must be playing when you call this API. - After calling this API, you will receive the music play state through ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error} callback. - If the music ID is invalid, you will receive the ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error} callback, with an errorCode of -3023 and a playState of 4. - If you didn't join the room, you will receive the ktvPlayer:onPlayStateChanged:state:error:{@link #ByteRTCKTVPlayerDelegate#ktvPlayer:onPlayStateChanged:state:error} callback, with an errorCode of -3022 and a playState of 4.
Implementation
FutureOr<void> seekMusic(NSString musicId, int position) async {
return await nativeCall('seekMusic:position:', [musicId, position]);
}