---
title: seekToTime
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/player/1627368-seektotime
---

# seekToTime

Sets the playback point to a specified time.

## Declaration

```data
void seekToTime(
    in int time
);
```

## Parameters

- `time`: The time, in seconds from the beginning of media item, that play begins.

## Discussion

Discussion Use this function to change where playback for a media item begins. The time where playback begins is passed, in seconds, by the time parameter. For example, to start a media item 5 minutes into playback, set the time parameter to 300.

## See Also

### Controlling Playback

- [changeToMediaAtIndex](tvmljs/player/1682100-changetomediaatindex.md)
- [pause](tvmljs/player/1627417-pause.md)
- [next](tvmljs/player/1682103-next.md)
- [play](tvmljs/player/1627432-play.md)
- [playbackState](tvmljs/player/1627387-playbackstate.md)
- [playbackRate](tvmljs/player/1682104-playbackrate.md)
- [previous](tvmljs/player/1682106-previous.md)
- [stop](tvmljs/player/1627406-stop.md)
