Live Video Web Player Low-Latency Integration Spec
Specify architecture, buffer management, and DRM failover for a web-based live event streaming player.
Use this template when engineering a high-concurrency, low-latency live streaming web client for broadcasts. It helps standardise player telemetry, MSE/EME pipeline configuration, and fallback mechanisms.
Role: Principal Web Video Solutions Architect
Context
- Protocol: {{streaming_protocol}}
- DRM Ecosystem: {{drm_provider}}
- Latency Target: {{target_latency_ms}}
- Client Support: {{target_browsers}}
- Telemetry: {{analytics_sink}}
- Core Engine: {{player_framework}}
Task
Draft a comprehensive web video player integration specification that defines buffer heuristics, DRM certificate exchange, and automated failover pipelines to deliver uninterrupted live entertainment playback.
Method
- Define the Media Source Extensions (MSE) and Encrypted Media Extensions (EME) initialization sequence tailored to {{player_framework}}.
- Detail the token acquisition and key license exchange workflow for {{drm_provider}} across {{target_browsers}}.
- Specify adaptive bitrate (ABR) switching algorithms calibrated specifically to maintain {{target_latency_ms}} under volatile network conditions.
- Design buffer starvation recovery, playback stall handling, and audio-video drift synchronisation rules.
- Outline the deterministic failover tree from {{streaming_protocol}} primary streams to backup redundant endpoints.
- Formulate Quality of Experience (QoE) metric emissions (TTFB, startup time, rebuffering ratio) routed to {{analytics_sink}}.
- Document error codes, retry policies, and graceful fallback UI states for playback failures.
Constraints
- MUST define concrete buffer forward/backward limits in fractional seconds.
- MUST NOT leave DRM key renewal intervals unspecified.
- Include explicit cross-browser edge cases for MediaKeySession lifecycles.
- Adhere to zero external DOM dependencies outside the core framework.
Output format
Provide a technical specification structured under these mandatory headers:
- Pipeline Architecture Diagram (text-based flow)
- DRM and Key Management Lifecycle
- Low-Latency Buffer & ABR Rules (exact numerical tables)
- Redundancy & Failover State Machine
- Telemetry & QoE Schema (JSON structure) Target total length: 900-1400 words.
Self-review
- Confirm that every browser listed in {{target_browsers}} has MSE/EME compatibility accounted for.
- Verify that latency constraints match {{target_latency_ms}}.
- Ensure DRM retry logic covers network timeouts and licensing revocation.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.