---
name: "VideoContext.seek"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "VideoContext.seek - 跳转到指定位置"
---

## VideoContext.seek

> [VERSION] Base Library >= 2.21.8

### Description

Seek to a specified position

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `position` | `number` | Yes | Position to seek to, in seconds |

### Return Value

None


### Examples

#### Seek to 30 seconds

```ts
const videoCtx = ty.createNativeVideoContext('myVideo');
videoCtx.seek(30);
```
