Skip to content

Captions Cut Off in Fullscreen on Chrome #348

Description

@joe-replin

Subject of the issue/enhancement/features

Some users have reported that captions (subtitles) get cut off or overlap the video controls when watching videos in fullscreen mode on Chrome.

  • This issue only happens in fullscreen on some versions of Chrome.
  • It works fine in Firefox and in normal (non-fullscreen) mode.
  • The problem seems to happen when captions have two lines, and the second line drops too low and gets hidden behind the player bar.

MediaElement.js uses native browser caption rendering by default (renderCaptionsNatively: true). In Chrome, native captions are rendered by the browser itself, and:

  • Cannot be styled via regular CSS (line-height, bottom, etc.)
  • May be influenced by the user's system caption settings
  • In fullscreen, Chrome often repositions captions downward, and the second line may get tucked underneath the media player bar.

Meanwhile, Firefox appears to render native captions differently (more predictably), or positions them upward to stay within bounds of the video frame.

Your environment

  • FW v5.45.2
  • Media v7.0.0
  • Chrome 140.0.7339.128
  • Window & MacOS

Steps to reproduce

Using the following configuration above, add a multi-line caption to a video and play in Chrome fullscreen.

Temporary Fixes

To reduce the impact of the issue:

  1. Smaller Caption Text in Fullscreen - We've reduced the caption font size when a video goes fullscreen. This makes it less likely that the second line will get cut off. But understand this isn't a good long-term solution.
  2. Auto-Hide the Player Bar - Captions don't get blocked.

Possible Long-term fixes

  • Evaluate the mediaelement.js library to see if any settings exist
  • Possibly disable native caption rendering by browsers. Instead apply our own styles.
  • Manually detect fullscreen / Chrome and attempt to override styles programmatically.

Screenshots (if you can)

Chrome fullscreen CC Text rendering
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions