We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mux-player-react
Chrome
macOS
When using mux-player-react and adding a subtitle track as a child, the subtitle track gets duplicated:
Code structure:
import MuxPlayer from '@mux/mux-player-react'; <MuxPlayer playbackId=..."> <track kind="subtitles" label="Norsk" src="..." srcLang="no" /> </MuxPlayer>
https://stackblitz.com/edit/vitejs-vite-fhn3wm?file=src%2FApp.tsx
<track>
<track> children gets duplicated.
<track> children not getting duplicated.
No response
2.4.1
The text was updated successfully, but these errors were encountered:
it's because Mux player automatically loads them from the m3u8. they can be removed with some API calls to the Mux video API https://docs.mux.com/api-reference#video/operation/delete-asset-track
is your intention to manually override the subtitles?
Sorry, something went wrong.
No, I want to add my own subtitle tracks stored elsewhere to the video player. We don't add subtitles to Mux directly.
We're using Sanity as a CMS and the Mux plugin doesn't support uploading subtitle tracks, so we want to load them in as <track> elements.
It is so close to working perfectly, except the duplicating issue.
No branches or pull requests
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
When using
mux-player-react
and adding a subtitle track as a child, the subtitle track gets duplicated:Code structure:
Reduced test case
https://stackblitz.com/edit/vitejs-vite-fhn3wm?file=src%2FApp.tsx
Steps to reproduce
<track>
as child of MuxPlayerCurrent Behavior
<track>
children gets duplicated.Expected Behavior
<track>
children not getting duplicated.Errors
No response
What version of the package are you using?
2.4.1
The text was updated successfully, but these errors were encountered: