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: Cannot Find Anywhere to Use Captions in Mux Player #770

Closed
1 task done
pateljoel opened this issue Sep 14, 2023 · 4 comments
Closed
1 task done

Bug: Cannot Find Anywhere to Use Captions in Mux Player #770

pateljoel opened this issue Sep 14, 2023 · 4 comments

Comments

@pateljoel
Copy link

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-video-react, mux-player-react

Which browsers are you using?

Chrome

Which operating systems are you using?

macOS

Description

I can't find anywhere to add captions to the Mux Player i'm using in React, I have a .vtt file hosted externally but I cannot find anywhere in the docs to load a .vtt file into Mux Player to show the captions.

Reduced test case

No response

Steps to reproduce

Use Mux Player React with an external .vtt file, but there are no docs that show how to successfully load external captions into Mux Player React

Current Behavior

At this present moment after searching through everything, Mux Player doesn't load .vtt files externally or cannot find any documentations on this which means that the current behavior is the same.

Expected Behavior

Mux Player should be able to show captions externally whether .vtt, srt etc from an external source from a CI, CMS, S3 etc.

Errors

No response

What version of the package are you using?

1.14.2

@pateljoel pateljoel added bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Sep 14, 2023
@dylanjha
Copy link
Contributor

@pateljoel with Mux-hosted videos the captions file that you have should be sent to Mux according to this guide

When you do this, Mux will process the file and deliver the captions with the HLS video.

Does that help?

@dylanjha dylanjha removed bug Something isn't working Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Sep 15, 2023
@pateljoel
Copy link
Author

@dylanjha No I don't believe this helps, my .vtt file and my MP4 videos are external and use a different workflow.

Would it be possible to add the ability for vtt / srt files to be read externally into the Mux Player?

@dylanjha
Copy link
Contributor

@pateljoel ahh I see. Is this a Mux MP4, or an MP4 hosted somewhere else?

The issue is that Mux Player is meant for playing videos that are hosted by Mux over HLS. If you're using an .mp4 video that might technically work, but it's not a use case that we officially test or make sure we have support for.

For creating players for non-Mux content you can build out the same kind of custom player with Media Chrome (this is how we build Mux Player), with that you'd be able to use the <video> element with children <track> elements.

We may have better support for non-Mux hosted videos in the future, but right now Mux Player is focused on Mux-hosted HLS video delivery.

@cjpillsbury
Copy link
Contributor

Closing due to staleness, but can re-open if conversation picks back up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants