Ocyss/srs-auth / .agents/skills/internal-codemap-for-srs
internal-codemap-for-srs
VerifiedRoute SRS and Oryx code tasks to the smallest relevant trusted codebase map and verification guidance. Use whenever support, development, debugging, review, or maintenance work requires locating, choosing, reading, modifying, testing, or verifying SRS or Oryx code. Covers the first-generation C++ origin and edge media server, its State Threads dependency, the next-generation Go server, browser publishers and players, the SRS Docker image toolchain, SRS testing, and the Oryx Go backend, React dashboard, integrated runtime, packaging, installers, releases, and tests. Use as the code-navigation dependency of parent support and development skills; the parent skill remains responsible for the user-facing workflow and result.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/browser-clients.md | markdown | 2.2 KB |
| references/cpp-server.md | markdown | 23.1 KB |
| references/dev-docker.md | markdown | 8.3 KB |
| references/go-server.md | markdown | 6.8 KB |
| references/oryx.md | markdown | 16.9 KB |
| references/testing.md | markdown | 2.8 KB |
references/browser-clients.md
View on GitHub# Browser Publisher and Player Code Map
Use this reference after `skills/internal-codemap-for-srs/SKILL.md` routes a task to browser publishers and players. The listed module directory defines the trusted navigation scope for WHIP, WHEP, HTTP-FLV, and HLS browser clients.
## Browser Client Code
`trunk/research/players/` — Browser research and demonstration clients for publishing and playback.
- `whip.html` — WHIP publisher page: media capture, publishing controls, codec selection, bearer token, session display, and teardown.
- `whep.html` — WHEP player page: playback controls, audio/video selection, codec selection, bearer token, session display, and teardown.
- `rtc_publisher.html` and `rtc_player.html` — Older WebRTC publisher and player pages that translate the stream URL to WHIP or WHEP and use the shared SDK.
- `srs_player.html` — HTML5 live player for HTTP-FLV and HLS; also handles HTTP-TS, MPEG-DASH, MP4, AAC, and MP3 playback.
- `js/srs.sdk.js` — Shared WebRTC SDK implementing WHIP publishing and WHEP playback, including SDP exchange, media tracks, authorization, session resources, and teardown.
- `js/srs.page.js` — Shared page initialization and default URL construction for WHIP, WHEP, HTTP-FLV, and the browser demos.
- `js/srs.utility.js`, `js/winlin.utility.js`, and `js/srs.log.js` — Shared URL parsing, query-string, utility, and logging helpers used by the pages.
- `js/mpegts-1.7.3.min.js` and `js/hls-1.4.14.min.js` — Bundled third-party playback runtimes used by the HTTP-FLV and HLS player. Inspect these vendored files only when the task specifically concerns the dependency itself.
For other pages or assets in this module, list filenames only within `trunk/research/players/`, choose the smallest relevant set, then read or search only those files.
## Boundaries
- Use this map for browser-side publisher and player behavior.
- Use `references/cpp-server.md` for the corresponding server-side WebRTC, HTTP-FLV, or HLS implementation.
- Use `references/go-server.md` when the browser client is exercising the next-generation Go proxy.
- Add `references/testing.md` when reproduction or verification requires server, protocol, E2E, or benchmark tests.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |