For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/SoundDurationInfo.md.

Class: SoundDurationInfo experimental

sound

Beta

提供声明了时长的声音的时长和播放信息。

Provides duration and playback information for a sound whose definition declares a duration.

Properties

duration

readonly duration: number

Beta

Remarks

获取声音的总时长(以秒为单位)。

Gets the total duration of the sound in seconds.


isActive

readonly isActive: 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.

同领域相关