startPlayMusic abstract method

void startPlayMusic(
  1. AudioMusicParam musicParam
)

Starting Background Music

  • You must assign an ID to each music track so that you can start, stop, or set the volume of music tracks by ID.

  • Parameters:

Note:

  1. If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
  2. If you want to play different music tracks at the same time, use different IDs for them.
  3. If you use the same ID to play a music track different from the current one, the SDK will stop the current one before playing the new one.

Implementation

void startPlayMusic(AudioMusicParam musicParam);