AudioMusicParam

AudioMusicParam

Background music playback information

Constructor

new AudioMusicParam(id, path, loopCount, publish, isShortFile, startTimeMS, endTimeMS)

Parameters:
Name Type Description
id Number required

music ID

path String required

absolute path of the music file or url.the mp3,aac,m4a,wav supported.

loopCount Number required

number of times the music track is looped

publish Boolean required

whether to send the music to remote users

isShortFile Boolean required

whether the music played is a short music track

startTimeMS Number required

the point in time in milliseconds for starting music playback

endTimeMS Number required

the point in time in milliseconds for ending music playback. 0 indicates that playback continues till the end of the music track.