AudioMusicParam

AudioMusicParam

Background music playback information

Constructor

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

Parameters:
Name Type Description
id Number

music ID

path String

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

loopCount Number

number of times the music track is looped

publish Boolean

whether to send the music to remote users

isShortFile Boolean

whether the music played is a short music track

startTimeMS Number

the point in time in milliseconds for starting music playback

endTimeMS Number

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