getPosition()

Intended to return the viewer's current position in a media file. Values may vary depending on the type of media. See the table below for more information.

Media TypeDescriptionType
VODThe current playback position for a VOD file, in secondsNumber
LiveHow long the current stream has been playing, in seconds, plus the amount of time seeked at start in order to achieve an initial target latencyNumber
DVRA negative value, indicating how far behind the viewer is from the stream's live position.1Number

πŸ“˜

NOTE

1 Seeking to a live position will include a buffer of approximately -30 seconds.

© 2007-2024 Longtail Ad Solutions, Inc.