muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.11k stars 56 forks source link

Chapters not always showing on media-time-range element #915

Closed endymion1818 closed 1 month ago

endymion1818 commented 1 month ago

Hi

I'm having issues with media-chrome and mux-video, I have a chapters.vtt which I'm adding to the mux-video element, and the chapters are showing in the track, however chapter titles aren't showing when you hover across the timeline.

When clicking on the 1px / 2px area of the exact chapter:

Screenshot 2024-05-24 at 14 44 30

When clicking elsewhere on the timeline:

Screenshot 2024-05-24 at 14 44 43

Versus demo on https://www.media-chrome.org/docs/en/components/media-time-range:

Screenshot 2024-05-24 at 14 53 05

I'm mentioning it since I can't identify what might be causing this issue. The VTT file seems to be in the same format as the ones on your demos.

Minimum reproducible example: https://codepen.io/endymion1818/pen/VwOKvKK

endymion1818 commented 1 month ago

Can I also say that this is a minor niggle, we're in the process of replatforming and these components are an absolute joy to work with.

luwes commented 1 month ago

thanks for reporting! this looks like a bug, we will have a look at this soon.