getMusicCurrentPosInMS method
Getting the Playback Progress (ms) of Background Music
This API is used to retrieve the playback progress of background music.
- Parameters:
- id(int):
- Music ID.
- id(int):
Return Description: The milliseconds that have passed since playback started. -1 indicates failure to get the playback progress.
Implementation
int getMusicCurrentPosInMS(int id) {
return _audioEffectFFIBindings.get_current_pos_in_ms(_nativePointer, id);
}