Skip to content

Commit 2d77067

Browse files
committed
docs: update video snapshot feature documentation
1 parent 5917909 commit 2d77067

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

docs/url-formats.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,6 @@ http://192.168.1.1:5140/playlist.m3u
9696

9797
详见 [M3U 播放列表集成](m3u-integration.md)
9898

99-
## 视频快照
100-
101-
在任意流媒体 URL 后添加 `snapshot=1` 参数,或在 HTTP 请求头中添加 `Accept: image/jpeg``X-Request-Snapshot: 1`,即可获取视频流的 JPEG 快照。
102-
103-
**示例**
104-
105-
```url
106-
# 方式 1:URL 参数
107-
http://192.168.1.1:5140/rtp/239.253.64.120:5140?snapshot=1
108-
109-
# 方式 2:HTTP 请求头
110-
curl -H "Accept: image/jpeg" http://192.168.1.1:5140/rtp/239.253.64.120:5140
111-
112-
# 方式 3:自定义请求头
113-
curl -H "X-Request-Snapshot: 1" http://192.168.1.1:5140/rtp/239.253.64.120:5140
114-
```
115-
116-
详见 [视频快照配置](video-snapshot.md)
117-
11899
## 内置 Web 播放器
119100

120101
```url
@@ -170,6 +151,25 @@ http://192.168.1.1:5140/udp/239.253.64.120:5140
170151

171152
UDPxy 兼容模式默认启用,可以通过配置参数 `udpxy = no` 禁用。禁用后仅支持通过 m3u 提供服务。
172153

154+
## 视频快照
155+
156+
在任意流媒体 URL 后添加 `snapshot=1` 参数,或在 HTTP 请求头中添加 `Accept: image/jpeg``X-Request-Snapshot: 1`,即可获取视频流的 JPEG 快照。
157+
158+
**示例**
159+
160+
```url
161+
# 方式 1:URL 参数
162+
http://192.168.1.1:5140/rtp/239.253.64.120:5140?snapshot=1
163+
164+
# 方式 2:HTTP 请求头
165+
curl -H "Accept: image/jpeg" http://192.168.1.1:5140/rtp/239.253.64.120:5140
166+
167+
# 方式 3:自定义请求头
168+
curl -H "X-Request-Snapshot: 1" http://192.168.1.1:5140/rtp/239.253.64.120:5140
169+
```
170+
171+
详见 [视频快照配置](video-snapshot.md)
172+
173173
## 相关文档
174174

175175
- [M3U 播放列表集成](m3u-integration.md):播放列表配置

0 commit comments

Comments
 (0)