startPlayMusic abstract method
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:
- musicParam(AudioMusicParam):
- Music parameter.
- musicParam(AudioMusicParam):
Note:
- If you play the same music track multiple times, please use the same ID instead of a separate ID for each playback.
- If you want to play different music tracks at the same time, use different IDs for them.
- 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);