HLS Fullscreen Button Does Nothing: Check Document Permission First

If a video plays inside the page but its fullscreen button appears ineffective, changing the HLS URL is usually an unhelpful first experiment. Record whether the application made a fullscreen request, whether that request was rejected and which document owns the player. Those observations address the display operation separately from media delivery.

We checked one concrete failure path: a document whose response explicitly disables fullscreen. This guide combines that result with documentation-based checks for embedded players. It does not claim that every silent button has a permissions problem.

Verification method — October 30, 2026: A local Node.js server served two minimal HTML documents on a loopback address. One had no fullscreen policy header; the other sent Permissions-Policy: fullscreen=(). Playwright used bundled headless Chromium 156.0.8078.4. Five assertions checked capability and initial fullscreen state in the first document, then capability, rejected request error name and inactive fullscreen state in the second. The target was an ordinary div, with no video or media requests. We did not validate successful fullscreen entry, physical screen appearance, manual gestures, iframe delegation, mobile Safari, native video fullscreen or the complete M3U8Online application. The iframe guidance below is a documentation check, not an iframe playback experiment.

What the policy experiment established

Local documentfullscreenEnabledfullscreenElementRequest result
No explicit policy headertruenull initiallySuccessful entry was not tested
Header disables fullscreenfalsenull after rejectionPromise rejected with TypeError

The first row only reports capability. It does not establish that a later request will succeed. The second row demonstrates a refusal that needs no broken playlist, codec or missing segment to explain it. Our fixture did not load HLS at all.

This distinction matters when writing error reports. “Fullscreen is disabled in this document” is evidence about the page's permission state. “HLS cannot play fullscreen” is a much broader claim requiring actual player and device observations.

A viewer's first checks

  1. Try the player's own fullscreen control once while the page is active. Note any visible message. Do not repeatedly reload a working stream before recording the symptom.
  2. Check whether only the picture stays within the page, or playback itself stops. For a stopped timeline, use the pause-state diagnosis; fullscreen permission alone does not describe the media clock.
  3. If the player is embedded, compare the same permitted content on its original player page. A working original page and failing embed narrow the investigation to differences between those contexts; they do not identify the exact policy by themselves.
  4. Record browser, device, original versus embedded page and the exact control used. Browser-window fullscreen, page-element fullscreen and platform-specific video fullscreen should not be treated as interchangeable observations.

Do not disable general browser security settings or install an extension that promises to force fullscreen. The site operator can inspect the relevant request and permissions without altering unrelated settings.

Read state before changing the page

On a page you operate or are authorized to inspect, this console snippet reads the document's state without requesting fullscreen or exposing a stream address:

({
  fullscreenApi: typeof document.documentElement.requestFullscreen === 'function',
  fullscreenEnabled: document.fullscreenEnabled,
  activeElementTag: document.fullscreenElement?.tagName ?? null,
})

When diagnosing an iframe, select that frame's console context. The outer document and the embedded document can have different permission states. If the API is unavailable, do not call a missing method and report the resulting JavaScript error as a stream failure.

The read-only values are a starting point. For a request the application already makes, capture its returned Promise rejection and the fullscreenchange or fullscreenerror events. Log a concise error name and relevant state; private URLs and viewer credentials are unnecessary for this check.

What operators should inspect

ObservationNext evidenceWhat it does not prove
API absentBrowser/platform support and application's fallbackThat the media is invalid
Capability falseDocument response policy and embedding restrictionsWhich header or ancestor imposed the restriction
Capability true, request rejectedExact rejection, target element and request timingThat permission is the only possible cause
Fullscreen state changes, picture remains smallTarget wrapper, video dimensions and CSS layoutThat HLS delivery failed

MDN describes fullscreen requests as asynchronous and requiring permission; user activation requirements must also be respected. Call the operation from the supported user interaction rather than assuming an arbitrary delayed callback retains activation. Our automation does not establish manual gesture behavior.

For an embedded player, inspect both the embedding page's response policy and the iframe's fullscreen delegation. MDN documents allow="fullscreen" for cross-origin frames and notes that an enclosing policy can still restrict access. Adding an iframe attribute cannot override a policy that disallows the feature. Check the whole embedding chain rather than copying a permissive setting into every frame. The responsive embed guide covers the separate layout and integration concerns.

If a request succeeds but the video occupies only part of the fullscreen area, identify which element became fullscreen before modifying CSS. That is a different investigation from the explicit policy rejection reproduced here. Likewise, a browser's permission failure should not send you straight to HLS network troubleshooting unless requests or playback also show a delivery problem.

Repeat the narrow check

Serve two local pages with the same simple div, adding Permissions-Policy: fullscreen=() to only one response. Read the capability in each document and catch the rejection on the restricted page. Keep the browser version, response header and error category with the result. Do not generalize a desktop div test into a promise about fullscreen video on a phone.

Our project check is node scripts/test-fullscreen-policy.cjs. It uses a local server and bundled Chromium, needs no public stream and saves its report under coverage/content-review/fullscreen-policy.json. A positive capability result remains distinct from a successful transition; both remain distinct from correct video playback and physical display behavior.

Primary references