> For the complete documentation index, see [llms.txt](https://docs.aptvapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aptvapp.com/play/playseek.md).

# 回看参数

## 1. 默认回看参数

APTV会检测播放连接中是否存在【PLTV】或【TVOD】两个字符，若存在则会自动拼接下面的回看参数

```
?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}
```

## 2. 针对整个M3U文件设置回看参数

```
#EXTM3U catchup="append" catchup-source="?playbackbegin=${(b)yyyyMMddHHmmss}&playbackend=${(e)yyyyMMddHHmmss}"
```

## 3. 如何对单个频道设置回看参数？

按照下面的方式进行设置：

```
#EXTINF:-1 catchup="append" catchup-source="?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}",CCTV1
http://hostname:port/xxx
```

## 4. 如何为单个频道设置单独的回看地址

按照下面的方式进行设置：

```
#EXTINF:-1 catchup="default" catchup-source="http://hostname:port/xxx2?playseek=${(b)yyyyMMddHHmmss}-${(e)yyyyMMddHHmmss}",CCTV1
http://hostname:port/xxx
```

## 5. 如何设置 UTC 时间参数？

### 格式1：

```
#EXTINF:-1 catchup="append" catchup-source="?playseek=${(b)yyyyMMddHHmmss:utc}-${(e)yyyyMMddHHmmss:utc}",CCTV1
http://hostname:port/xxx
```

### 格式2：

```
#EXTINF:-1 catchup="append" catchup-source="?playseek={utc:YmdHMS}-{utcend:YmdHMS}",CCTV1
http://hostname:port/xxx
```

### 6. 如何设置时间戳格式

```
#EXTM3U catchup="append" catchup-source="?starttime=${(b)timestamp}&endtime=${(e)timestamp}"
http://hostname:port/xxx
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aptvapp.com/play/playseek.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
