---
name: "VideoContext.seek"
mode: "api"
versionRequirements:
  - { name: "基础库", version: "2.21.8" }
title: "NativeVideoContext.seek - 跳转到指定位置"
---

## VideoContext.seek

> [VERSION] 基础库 >= 2.21.8

### 描述

跳转到指定位置

### 参数

`Params`

| 参数 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `position` | `number` | 是 | 跳转到的位置，单位 s |

### 返回值

无


### 示例代码

#### 跳转到第 30 秒

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