jellyfin-web icon indicating copy to clipboard operation
jellyfin-web copied to clipboard

Subtitles dark background box

Open gwenvador opened this issue 5 years ago • 18 comments

Describe the bug When playing a video on webclient there is a transparent black box in the background with the subtitles.

Expected behavior There should not be a background black box.

Screenshots https://i.imgur.com/hBClWUz.png

System (please complete the following information):

  • OS: MAC OS Catalina
  • Browser: Brave/Chrome (box spreading the full width), safari (around the subtitle)
  • Jellyfin Version: 10.5.5

Additional context There is a reddit post on this issue but not resolved or reported on github: https://www.reddit.com/r/jellyfin/comments/ghwswp/deactivate_subtitle_backgroundbox/

gwenvador avatar Jun 17 '20 07:06 gwenvador

Also seems to be occurring in Microsoft Edge with the full width box. (Here's a screenshot.)

ghost avatar Jul 03 '20 06:07 ghost

I guess you are on windows? What's your full config?

gwenvador avatar Jul 03 '20 09:07 gwenvador

I'm not able to reproduce this on unstable (10.6).

Could one of you try, so we can confirm if this still happens or not? (Make sure to backup you current database)

heyhippari avatar Jul 03 '20 12:07 heyhippari

I guess you are on windows? What's your full config?

I am on macOS 10.15.5, Jellyfin 10.5.5 stable. (I would test it on unstable but I don't see a build for macOS)

ghost avatar Jul 04 '20 20:07 ghost

I found that iOS has some styling: Settings > Accessibility > Subtitles & Captioning > Style. macOS has similar in System Settings. If this is the case, then I believe that we cannot change this with either CSS or JS.

If only someone can provide ShadowDOM of videoplayer. Maybe some pseudo elements could be tuned.

dmitrylyzo avatar Jul 07 '20 11:07 dmitrylyzo

It's likely to be either -webkit-media-text-track-container, -webkit-media-text-track-display or cue.

Given the screenshot, my guess would be on -webkit-media-text-track-display.

heyhippari avatar Jul 07 '20 12:07 heyhippari

Tried changing background-color with custom CSS. ::-webkit-media-text-track-container affects the entire screen. ::-webkit-media-text-track-display affects the lines occupied by subtitles. ::cue we already made it transparent.

Also tried changing style in iOS settings on iPad - it overrides our style.

So either there are other pseudo-elements in iOS, or it is impossible to do this.

dmitrylyzo avatar Jul 07 '20 12:07 dmitrylyzo

@dmitrylyzo There's apparently a -webkit-media-text-track-display-backdrop specific to Safari.

Edit: It also needs !important

heyhippari avatar Jul 07 '20 13:07 heyhippari

On iPhone 5S ::-webkit-media-text-track-display-backdrop{background-color:red!important} produces red background, as expected. But this doesn't work on iPad Pro.

But... if I select "Classic" predefined style, our style works.

dmitrylyzo avatar Jul 07 '20 13:07 dmitrylyzo

macOS has this page in accessibility settings: Screenshot 08-18-2020 at 15 13 48@2x Changing those settings to remove the background and making the size small improves the caption... but it lowers it down below the bottom edge of the video, which cuts off completely on longer lines. Screenshot 08-18-2020 at 15 13 00@2x

ghost avatar Aug 18 '20 19:08 ghost

@mattgeowild Have you tried Classic option?

dmitrylyzo avatar Aug 19 '20 11:08 dmitrylyzo

i have tried the classic option but it still the same

vedhavyas avatar May 01 '21 20:05 vedhavyas

I'm sure there's a way to get rid of it within the app and not in our operating system settings as Emby and plex have done it. Emby even gives you an option to control the background opacity. I know this isn't Emby. Just saying it's possible

dannymichel avatar Apr 28 '22 03:04 dannymichel

Same issue here...

Arche151 avatar Oct 09 '23 14:10 Arche151

same issue here on MacOS Sonoma 14.2.1 (23C71), Jellyfin version 10.8.13

UPD. Setting to Captures "Classic" in Accessibility settings helped for now

RayJameson avatar Dec 30 '23 10:12 RayJameson

I use brave browser so this should work for other Chromium base browsers in MacOS. Like some of the responses above, create a new accessibility caption entry checking the Allow video to override checkbox for all options. Save and restart your browser.

image

image

image

ealcantara22 avatar Feb 02 '24 12:02 ealcantara22

Still facing this issue even after creating a custom Caption entry and disabling background color using Edge and Mac OS 13

EDIT: a restart fixed it

ShaleenAg avatar Apr 27 '24 07:04 ShaleenAg