Skip to main content

GET Playback Position

Overview


Returns the saved playback position (in seconds) for a specific user and video. This can be used to resume video playback from where the user left off.

GET Playback Position
MethodGET
URL or Endpoint/position/userId/videoId
HeadersNot Applicable
ParametersuserId, videoId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
userIdYesstringUnique ID of the user.
videoIdYesstringUnique ID of the video.

Request Body

The request does not contain a request body.

Response

Returns the playback position as a string value representing the number of seconds.

"120"
Field NameTypeDescription
positionstringThe playback position in seconds where the user last stopped watching the video.

If the action is successful, the service sends back an HTTP 200 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

note

The base URL for this endpoint is not publicly listed. Contact VP Support to obtain the host URL for your project. The userId and videoId parameters correspond to the values set via the player's setUserId() method and video configuration. For setup details, see the Continue Watching guide.