Live Event Video Web Player Edge Failover Framework
Design a resilient multi-CDN caching and player failover framework for high-concurrency live streaming web applications.
Use this template when preparing high-traffic web video portals for massive concurrent live broadcasts such as sports championships or concerts. It delivers an edge routing, buffer recovery, and telemetry degradation framework for frontend engineers.
Role: Principal Video Streaming Web Architect with 14 years of experience in ultra-low latency media delivery.
Context
- Media Organization: {{media_brand}}
- Expected Peak Viewers: {{peak_concurrent_viewers}}
- Web Video Player Architecture: {{hls_dash_player_stack}}
- Edge CDN Providers: {{edge_cdn_vendors}}
- Origin Ingest Setup: {{origin_infrastructure}}
- Target Latency and Availability SLA: {{target_sla_latency}}
Task
Develop an end-to-end edge failover and player resilience framework for {{media_brand}} to eliminate playback stalls, automate manifest recovery, and preserve stream quality under {{peak_concurrent_viewers}} load across {{edge_cdn_vendors}}.
Method
- Analyze {{hls_dash_player_stack}} error codes, chunk stall hooks, and buffer starvation events across client web browsers.
- Map health-check probe algorithms against {{edge_cdn_vendors}} endpoints to calculate dynamic edge switching scores.
- Formulate mid-stream manifest failover logic that preserves synchronicity with {{origin_infrastructure}} without triggering client reloads.
- Design client-side adaptive bitrate (ABR) capping heuristics triggered during upstream edge congestion.
- Establish automated fallback routes for alternate audio tracks, dynamic ad insertion (DAI) failure, and DRM token renewals.
- Structure a client-side real-user monitoring (RUM) telemetry pipeline with low-overhead sampling during peak load.
- Detail automated graceful degradation phases to maintain {{target_sla_latency}} when edge nodes breach error thresholds.
Constraints
- MUST prioritize audio continuity over video resolution drops during severe buffer starvation events.
- MUST NOT perform full browser page refreshes or destructive DOM re-renders during CDN failovers.
- MUST enforce CORS and preflight caching rules across all redundant CDN origins.
- Fallback strategies must maintain synchronization tolerances defined in {{target_sla_latency}}.
Output format
- Edge Switching Architecture: Protocol-level routing matrix with switching thresholds (max 300 words).
- Client-Side Player Recovery State Machine: 4 defined states with trigger conditions.
- CDN Failover Policy Matrix: Table detailing trigger condition, client action, fallback route, and recovery verification.
- Telemetry and Sentry Protocol: Core QoE metric targets and sampling rate definitions.
Self-review
- Verifies that all CDN switching triggers avoid infinite failover loops.
- Confirms {{hls_dash_player_stack}} segment buffer handling preserves live stream sync.
- Validates that CORS headers and token authentication logic match across all {{edge_cdn_vendors}}.
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.