getMusicCurrentPosInMS abstract method

int getMusicCurrentPosInMS(
  1. int id
)

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.

Return Description: The milliseconds that have passed since playback started. -1 indicates failure to get the playback progress.

Implementation

int getMusicCurrentPosInMS(int id);