Class: SoundDurationInfo experimental
soundBeta
提供声明了时长的声音的时长和播放信息。
Provides duration and playback information for a sound whose definition declares a duration.
Properties
duration
readonlyduration:number
Beta
Remarks
获取声音的总时长(以秒为单位)。
Gets the total duration of the sound in seconds.
isActive
readonlyisActive:boolean
Beta
Remarks
获取声音是否仍被追踪。
Gets whether the sound is still being tracked.
Methods
getPlaybackPosition()
getPlaybackPosition():
number
World Mutation Beta
Returns
number
已播放的时间(以秒为单位)。
Elapsed playback time in seconds.
Remarks
返回声音开始播放以来的已播放时间(以秒为单位)。
Returns the elapsed playback time of the sound, in seconds, since it started playing.
