Rewind a Travel to a specified video timestamp and resume running from the actual landing point. The Travel must first enter the paused state.
Scope
Rewind a Travel to a specified video timestamp and resume running from the actual landing point. Before calling, confirm the following:
- Authentication: The primary API Key is not required; either the primary or a temporary API Key can call it. For how to obtain them, see Obtain authentication credentials.
- Prerequisites: The Travel must first enter the
pausedstate; it cannot be rewound directly whilerunning. Confirm via Query Travel Status. - Caller: Either your server or your client can call it.
HTTP request
Singapore
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/rewind
Replace {WorkspaceId} with your actual Workspace ID.
US (Virginia)
POST https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/travels/rewind
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Rewind Travel |
Content-Type Request content type. This parameter must be set to | |
Authorization API Key authentication. The primary API Key is not required; either the primary or a temporary API Key can call it.
| |
Request Body | |
encryptedTravelId The Directing encrypted Travel ID to rewind. Returned by Enter Travel. | |
rewindToSec The target video time, in seconds. Greater than or equal to userAgent SDK or client version identifier. A non-empty string; takes precedence over the HTTP |
Response parameters | Rewind succeeded |
code Return code. | |
message Error message. | |
data Response data. |
Prerequisite states and call notes
- The Travel must first enter
paused; it cannot be rewound directly whilerunning. - Pause Travel has an asynchronous confirmation barrier of about 3 seconds. After receiving the pause response, you should still poll Query Travel Status and confirm the externally visible status is already
pausedbefore calling this endpoint. - The script is organized in 4-second Blocks; a multiple of 4 such as 4, 8, or 12 is recommended for
rewindToSec(for example,6 → 8). - The actual landing point is determined by
resumedAtSec/actualRewindToSec.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After the rewind, the Travel returns to running:
- Query Travel Status: confirm the running status.
- Standard mode: Send Process Instruction.
- Pause Travel: pause again for the next rewind.
- End Travel: end the session and process the artifacts.