obs_media_seek
Seek an OBS media source to an absolute time in milliseconds or by a relative offset (negative to rewind). First check obs_media_status to avoid seeking live streams without duration.
Instructions
Move the playhead of a media source, either to an absolute position (positionMs) or by a relative amount (offsetMs, negative to rewind). Exactly one of the two.
There is NO bounds checking, by design of the protocol - seeking past the end does not clamp, and seeking a live feed that has no meaningful duration is not a defined operation. Read obs_media_status first: if durationMs is null and unboundedDuration is true, this source is a live stream and seeking it is meaningless.
On the reference machine, do not seek a looping media source to reach the next track. The queue lives in music/player.js, not in OBS; running node music/player.js --next is the supported skip and keeps the player's state file in agreement with what is audible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offsetMs | No | Relative move in milliseconds; negative rewinds. | |
| inputName | No | Name of the media input. | |
| inputUuid | No | UUID instead of a name. | |
| positionMs | No | Absolute cursor position in milliseconds. Must be >= 0. |