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 | |
|---|---|
| Method | GET |
| URL or Endpoint | /position/userId/videoId |
| Headers | Not Applicable |
| Parameters | userId, videoId |
| Body | Not Applicable |
The description of the URL parameters is as follows:
| URL Parameter Name | Mandatory | Type | Description |
|---|---|---|---|
userId | Yes | string | Unique ID of the user. |
videoId | Yes | string | Unique 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 Name | Type | Description |
|---|---|---|
position | string | The 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
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.