VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Fix a video embed that won’t enter full screen

The video plays within an iframe, but the fullscreen button does not work. Check the controls, embedding attributes, and parent styles in a logical sequence.

A small embedded video frame and a larger player area are displayed side by side, both equipped with corner indicators for full-screen mode.
The iframe display and the transition to full-screen mode are separate testing tasks. The view is illustrative.Image: Vioneto · AI-generated illustration

If the video plays in the embedded player but the fullscreen button has no effect, first test the same player outside of embedding. If switching to fullscreen works there after a deliberate click, the next step is to check the embedding frame and its parent rules. Simply increasing the side layout width alone does not grant fullscreen access.

Trigger full-screen mode deliberately

The Fullscreen API displays a selected element in full screen. According to MDN, the request must be triggered by an immediate user action, such as a click. Therefore, an automatically delayed request may fail. First, check the player's intended fullscreen button. Enabling fullscreen for the entire browser window is a separate feature and does not confirm that the player has entered fullscreen mode.

MDN: Using and Requirements of the Fullscreen API

The iframe's permission to be viewed

For a player from a different origin, the iframe attribute allow="fullscreen" enables full-screen functionality specifically. In existing embeds, you may also find the older attribute allowfullscreen. If the allow attribute includes a rule for fullscreen, that rule takes precedence over allowfullscreen. Therefore, start by taking the standard generated complete embedding code and compare it with the actual code that remains on the final website.

Pay special attention to CMS filters or additional embedding components that remove attributes. Add a known missing value only in the designated code field, and then check the published reader view. During this process, do not change the video address or its access parameters. A working player does not automatically require additional approvals for camera, microphone, or other devices.

Higher-level rules are considered.

The HTTP Permissions-Policy header can restrict fullscreen access for specific origins. A more permissive iframe attribute cannot override such a broad restriction. In nested embeddings, the path through outer frames must also be taken into account. Therefore, report a specific observation to the responsible website development team rather than blindly removing the entire security configuration.

MDN: Fullscreen in the Permissions Policy

An example of a logical diagnostic sequence

On a fictional course page, the full-screen button works when the player is directly accessed, but remains in small size within the course area. The author compares the generated embed code with the published iframe. If the full-screen option is missing, they examine the CMS component. If it is present, the development team reviews the rules of the parent page and any additional course frame. The next step is determined entirely by the specific observation.

  1. Open the direct viewer player with the assigned permissions and deliberately press the full-screen button. Note whether the transition to full screen succeeds.
  2. Repeat the action in the embedded player on the final page. Keep the browser, device, and affected page consistent.
  3. Compare the full-screen attributes of the generated code with those of the actual published iframe. Check for outer frames if the page uses them.
  4. After a targeted correction, also verify the return from full-screen mode, as well as control and subtitles in the enlarged player.

Browsers and devices support the involved functions differently. This episode is a diagnostic guide; no specific course page was modified, and a full device test was not performed. If the button is missing or the direct player fails, the provided user interface should also be examined.

Generally classify video embedding on the website

Check playback with the keyboard

Topics

Sources and further reading

  1. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy/fullscreen
  2. https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API/Guide