Skip to content
Discussion options

You must be logged in to vote

thanks for the feedback @MarkLyck.

this is unrelated to .srt vs .vtt I believe. the @mux/mux-video package doesn't provide any logic to move the subtitles automatically.

it's fairly easy to implement for Chrome and Safari but Firefox not so much.

see here for an example with media-chrome:

/*
* 0.433s is the transition duration for VTT Regions.
* Borrowed here, so the captions don't move too fast.
*/
media-controller {
--media-webkit-text-track-transform: translateY(0) scale(0.98);
--media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
}
m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarkLyck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
2 participants
Converted from issue

This discussion was converted from issue #1058 on January 13, 2025 15:50.