onRhythmPlayerStateChanged
Callback triggered when the virtual metronome state changes.
virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason)
- Deprecated
- Deprecated since v4.6.0.
This callback reports the current state of the virtual metronome, indicating the status of the local audio stream, and helps you troubleshoot audio issues.
Note: (Android and iOS only)
Trigger Timing
Occurs when the virtual metronome state changes.
Parameters
- state
- The current state of the virtual metronome. See RHYTHM_PLAYER_STATE_TYPE.
- reason
- Error code and message related to the virtual metronome. See RHYTHM_PLAYER_REASON.