Freigeben über


seekSegmentTime method

Locates the specified point on the element's segment timeline, and begins playing from that point.

Syntax

*object.*seekSegmentTime(segmentTime)

Parameters

  • segmentTime [in]
    Type: double

    An Integer that specifies a point on the element's segment timeline. The element's timeline immediately begins playing the from the specified point. Legal values range from 0 to segmentDur.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If you attempt to seek to a time on an object that is not currently active, an error is generated. To prevent this, check the object's status using the isActive property.

Not all media types support seeking. In cases where seeking is not supported by the player, calls to seek methods are ignored.

See also

transitionFilter

animate

animateColor

animateMotion

animation

audio

img

media

par

ref

seq

set

time2

video

Reference

seekActiveTime

seekTo

Conceptual

Introduction to HTML+TIME