Seeks an ongoing audio playback with the given ID to a new time.
Will not stop an ongoing playback.
Seeking a stopped
playback to a time greater than 0
will cause the status to change to paused
.
Seeking a paused
playback to 0
time will cause the status to change to stopped
.
If a negative number or a number higher than the duration of the audio file is given, the playback is set to the beginning or end of the file, respectively.
Label | Key | Type | Required? | Default | Description |
Audio playback ID |
| String | Yes | – | ID of the audio playback to stop. |
Seek to |
| Number(integer) | Yes | – | Time to seek to, in seconds from the beginning of the audio file. |
Number of outputs: 2
Label | Key | Type | Description |
Playback instance |
| Object | Object representing the playback instance after it has been sought to the new time. |
|
| String | Unique ID for this audio playback |
|
| Number | Duration of the audio file, in milliseconds. |
|
| Number | Current time of the ongoing playback, in milliseconds. |
|
| String | Status of the current playback. |
|
| Boolean | True/false value describing if the audio file is set to loop. |
|
| Number | If looping, the number of remaining loops until the playback stops. |
|
| String|String | Absolute local filesystem path or external URL to the audio file being played |
|
| String | ISO 8601 timestamp for when the playback was started. Can be used to calculate e.g. elapsed time. |
No events.
Label | Code | Description |
Playback instance not found |
| Thrown if no audio playback instance with the given ID could be found. |
Unknown error |
| Thrown if an unknown error occurred while seeking the audio file to a new position. |