# DVR

For live streams, ByteArk Player can display a DVR seek bar that lets viewers rewind within the live window and jump back to the live edge. Enable it by setting liveui: true in options.

DVR applies to live streams only. When liveui is enabled, the control bar shows the seekable live window with a live-edge indicator instead of a fixed live button.

# Options

Name Type Default Description
liveui Boolean - Show the DVR seek bar during live streams, letting viewers rewind within the live window
autoSeekToLiveEdge Boolean - Seek back to the live edge after the viewer pauses and resumes during live playback

# Example

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <div id="video-player"></div>
    <script src="https://byteark-sdk.cdn.byteark.com/player/v2/byteark-player.min.js"></script>
    <script>
      var player = bytearkPlayer('video-player', {
        fluid: true,
        liveui: true,
        autoSeekToLiveEdge: true,
        sources: [{
          title: 'Live Stream',
          src: '<LIVE_STREAM_URL>',
          type: 'application/x-mpegURL'
        }]
      });
    </script>
  </body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22