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
Feature Request: Add src attribute fallback for no-js rendering #762
Comments
@samburgers just checking - are you anticipating using a src that would be natively supported for playback via an |
@cjpillsbury thanks for reply. yep, for the sake of progressive enhancement i need to find a player that will fallback to a working native audio elements rendered on the server when javascript is not supported (ie with Nextjs). Mux appears to almost do this, but doesn't pass through the
Regarding HLS, for our case its fine to only support playback for browsers that natively support HLS. We have a mix of Mux/HLS and third party static audio assets, and simply need to cover the most ground possible. It's nice that Mux player allows that flexibility to mix them up, but the no-js fallback is a hard requirement. The alternative would be to make sure Mux player doesnt render the |
Let me chew on this for a bit and discuss with the larger group before making any final decisions there. Regardless, always appreciate more context on how folks are wanting to use our elements, so thanks! |
Cool thanks, looking forward to hearing back. As an aside, I kind of think a high quality general purpose media player could be great for introducing a bunch of devs/customers to the Mux service (which i also love). Cheers! |
I'm running into a similar issue today w/ Many other attributes are: |
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-audio-react
Description
The MuxAudioReact component (and probably others) relies on client side javascript for the
src
attribute to be set. A safe fallback to theouterSrc
prop could mean users can still play media in the native<audio>
element on devices without javascript , and i assume speed up the network waterfall too.https://github.com/muxinc/elements/blob/main/packages/mux-audio-react/src/index.tsx
Untested, but its probably something along the lines of changing this:
to something like this:
Expected Behavior
Rendered
<audio>
element should include thesrc
property so users can play audio file without javascript.The text was updated successfully, but these errors were encountered: