# Seek in Live DVR window

**URL:** <https://community.bitmovin.com/t/seek-in-live-dvr-window/2530>\
**Category:** Knowledge\
**Tags:** web\
**Created:** [December 19, 2023, 10:29am UTC](https://community.bitmovin.com/t/seek-in-live-dvr-window/2530 "2023-12-19T10:29:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabre.lambeau1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/fabre.lambeau1/32/519_2.png) [@fabre.lambeau1](https://community.bitmovin.com/u/fabre.lambeau1)\
**Post date:** [December 19, 2023, 10:29am UTC](https://community.bitmovin.com/t/seek-in-live-dvr-window/2530/1 "2023-12-19T10:29:21Z")

</div>

Using the Web SDK v8 APIs, how can I seek back and forth into the live DVR window?  
The `seek()` method indicates it cannot be used with live: “_Seeks to the given playback time specified by the parameter time in seconds. Must not be greater than the total duration of the video. Has no effect when watching a live stream as seeking is not possible._”

And yet there must be a way since I can scrub back by hand…

---

<div class="post-metadata">

**Author:** ![fabre.lambeau1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/fabre.lambeau1/32/519_2.png) [@fabre.lambeau1](https://community.bitmovin.com/u/fabre.lambeau1)\
**Post date:** [December 19, 2023, 10:33am UTC](https://community.bitmovin.com/t/seek-in-live-dvr-window/2530/2 "2023-12-19T10:33:04Z")

</div>

I think I can answer my own question. There is a `timeShift` method ([PlayerAPI | Bitmovin Player API 8.145.0](https://cdn.bitmovin.com/player/web/8/docs/interfaces/Core.PlayerAPI.html#timeShift)) that can be used to go back a number of seconds back from the live edge.

So with a bit of jiggery pokery, if I have a target clock time I want to go back to, I can calculate the negative offset based on the current player time and send the player there (provided it’s in the DVR window)

---

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [December 19, 2023, 10:51pm UTC](https://community.bitmovin.com/t/seek-in-live-dvr-window/2530/3 "2023-12-19T22:51:54Z")

</div>

Hey Fabre,  
Yes, exactly ! `seek()` is for VOD content and `timeShift()` for live  
You can also use `getMaxTimeShift()` to know the size of the DVR. The most common approach is to use negative values (negative offset from Live Edge) but you can also use UNIX timestamp (positive values) if you know exactly where you want to time shift to.
