Skip to content

Commit 6d3a13b

Browse files
committed
docs: add r2h-start parameter for resuming playback from a specific time point
1 parent f2052c8 commit 6d3a13b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/rtsp-time-processing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ http://192.168.1.1:5140/rtsp/iptv.example.com:554/channel1?playseek=202401011200
7979
http://192.168.1.1:5140/rtsp/iptv.example.com:554/channel1?playseek=20240101120000-20240101130000&r2h-seek-offset=-30
8080
```
8181

82+
### r2h-start 参数(可选)
83+
84+
用于指定从特定时间点开始播放 RTSP 流,实现续播功能。此参数值会作为 NPT(Normal Play Time)格式的时间点,在 RTSP PLAY 请求中通过 `Range: npt=<时间点>-` 头发送给 RTSP 服务器。
85+
86+
#### 示例
87+
88+
```url
89+
http://192.168.1.1:5140/rtsp/iptv.example.com:554/channel1?r2h-start=123.45
90+
```
91+
8292
## 支持的时间格式
8393

8494
rtp2httpd 支持解析以下时间格式。只有当时间能够被成功解析时,才可以进行时区转换或应用 r2h-seek-offset 秒数偏移。

0 commit comments

Comments
 (0)