Skip to content
New issue

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

Bug: <video> element has two identical <track> elements when track is added #948

Closed
1 task done
sunglee opened this issue Jul 15, 2024 · 0 comments · Fixed by #962
Closed
1 task done

Bug: <video> element has two identical <track> elements when track is added #948

sunglee opened this issue Jul 15, 2024 · 0 comments · Fixed by #962
Labels
bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@sunglee
Copy link

sunglee commented Jul 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

I have a text track in external source, so I added <track> element inside <MuxPlayer> component. When I see the generated code from the browser console, the video element has two identical track element. So when the video is played, it displays the same caption twice.

Reduced test case

https://codesandbox.io/p/sandbox/mux-player-react-zhst6f

Steps to reproduce

  1. In the codesandbox page provided, inspect video element
  2. Expand <video> tag

Screenshot 2024-07-15 at 11 30 25 AM

Current Behavior

The video element has two track elements.

Expected Behavior

The video element should have one track element.

Errors

No response

What version of the package are you using?

v2.7.0

@sunglee sunglee added bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Jul 15, 2024
@sunglee sunglee changed the title Bug: Bug: <video> element has two identical <track> element when track is added Jul 15, 2024
@sunglee sunglee changed the title Bug: <video> element has two identical <track> element when track is added Bug: <video> element has two identical <track> elements when track is added Jul 15, 2024
@luwes luwes closed this as completed in 735cb9b Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant