setMusicPitch abstract method
Transposes up/down the music being played.
musicId: Music ID.
pitch: The pitch up/down value relative to the original pitch, in the range of -12, 12, with the default value of 0.
The difference in pitch between two adjacent values is a semitone. A positive value indicates an increase in pitch, and a negative value indicates a decrease in pitch. A larger absolute value means more pitch increase or decrease.
Notes:
- The music must be playing when you call this API.
- After calling this API, you can receive music playing status through RTCKTVPlayerEventHandler.onPlayStateChanged.
Implementation
Future<void> setMusicPitch(
String musicId, {
required int pitch,
});