Conversation
| } | ||
|
|
||
| .playkit-subtitles { | ||
| z-index: 10; |
There was a problem hiding this comment.
how do subtitles look in non-audio entries after the change ? do they look ok ?
There was a problem hiding this comment.
in non-audio entries, you don't have title/description on the media itself, so it's not the same case.
however, I did encounter this issue in both types:

i noticed these buttons have z-index=1 as well as the title/description's = 1.
we shall set the captions at z-index > 1 so that it'll be in front of the title/descreption. but setting it to 2 would cover the buttons as seen in the above photo.
shall we increase the buttons with 1 so that we can set the caption to 2?
also, what should be taken into account to determine the value of caption-z-index, other than the buttons?
There was a problem hiding this comment.
ok, i agree with what sergey said below - we should localize the change to audio entries.
theres a variable on the global state called isAudio that should help with checking the entry type. see example here
| } | ||
|
|
||
| .playkit-subtitles { | ||
| z-index: 10; |
There was a problem hiding this comment.
I feel like the changes should be applied only for audio-entries. Also, need check how it behaves with dual-screen plugin that manage caption z-index as well
https://github.com/kaltura/playkit-js-dual-screen/blob/e98dc19c8d19d8da36d5c0c9b2f07d29ad85612b/src/styles/global.scss#L1
There was a problem hiding this comment.
could you elaborate on the dual-screen ?
because there's no title/descreption on the media like audio entries,
i assume you're talking about the child video. what is the expected behavior with regards to the caption? it's supposed to be behind the captions still no?
There was a problem hiding this comment.
either ways (z-index =1 or more) the captions would be in front of the 2 videos.
| } | ||
|
|
||
| .playkit-subtitles { | ||
| z-index: 10; |
There was a problem hiding this comment.
ok, i agree with what sergey said below - we should localize the change to audio entries.
theres a variable on the global state called isAudio that should help with checking the entry type. see example here

Description of the Changes
issue:
when playing an audio entry that includes captions, the captions are hidden behind the title and description of the entry.
fix:
bring captions in front of the title/description
Resolves: SUP-43106