docs(agents): add Cursor Cloud setup notes for rtp2httpd dev env#601
Conversation
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
…ream Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
| self._send(404, "text/plain", b"not found") | ||
| return | ||
| ctype = "application/vnd.apple.mpegurl" if path.endswith(".m3u8") else "video/mp2t" | ||
| with open(path, "rb") as fh: |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
…hevc+ac3/eac3 Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
| self.wfile.write(body) | ||
|
|
||
| def _serve_file(self, path: str) -> None: | ||
| if not os.path.isfile(path): |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
…s slices) Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
Co-authored-by: Stackie Jia <jsq2627@gmail.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-0a297bf00-601.eastasia.1.azurestaticapps.net |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 210be31449
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| self.max_segs = max_segs | ||
|
|
||
| def playlist(self, base: str, profile: str, begin: int, end: int) -> str: | ||
| nseg = min(self.max_segs, max(1, math.ceil((end - begin) / self.seg_dur))) |
There was a problem hiding this comment.
Avoid truncating longer HLS catchup windows
For HLS catchup requests longer than 90 minutes, this caps the playlist at 900 six-second segments and still emits #EXT-X-ENDLIST, so a two-hour-or-longer seek stops before the requested end even though the dev lab and player support multi-hour catchup windows. Increase the cap to cover the maximum requested window or derive it from the requested range instead of silently truncating.
Useful? React with 👍 / 👎.
Summary
Sets up the rtp2httpd development environment for Cursor Cloud agents and adds a reusable web-player dev lab (
tools/devlab/) covering the IPTV scenarios needed to develop the player. Durable notes live inAGENTS.md.Repo changes:
tools/devlab/devlab.py+README.md: mock IPTV upstreams.AGENTS.md(## Cursor Cloud specific instructions): Node + dev-lab notes.Startup update script (deps only):
pnpm install --frozen-lockfilethenuv sync --group dev.Dev lab scenarios
.m3u8+.ts/httph264-mp2,hevc-aac.m3u8+init.mp4/.m4s/httph264-aac,hevc-aacm3u8+.ts,playseek)/httpplayseek)/rtsph264-mp2,hevc-aac/rtp(-r lo)h264-mp2,hevc-ac3,hevc-eac3.tsfile/rtp(-r lo)--ts-file)#EXT-X-MAP+.m4s).playseekwindow returns anindex.m3u8(#EXT-X-PLAYLIST-TYPE:VOD) listing fixed-duration.tsslices, encoded lazily on demand with each slice's absolute wall-clock time burned in (so multi-hour windows stay time-correct without pre-encoding). mpegts/RTSP catchup streams continuous TS per window.Verification
pnpm run lint,pnpm run type-check,./scripts/run-e2e.sh(495 passed), build — all pass..ts/.m4s/EXT-X-MAPURIs and HLS-VOD-catchup slice URLs onto its/httpproxy..tsfile all play (H.264 channels).