MU

Mux Player React

@mux/mux-player-react

An open source Mux player for React that Just Works™

Utilities
video
mux
player
hls
react
@mux/mux-player-react
Utilities
javascript
npm
frontend
Stars
430
Weekly
1.9M
Open issues
5
Bundle
~25 kB

Installation

npm install @mux/mux-player-react

Code example

import { useMuxPlayerReact } from "@mux/mux-player-react";

export function Example() {
  const value = useMuxPlayerReact();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by Mux, Inc.
  • 1.9M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 5 open issues on GitHub

FAQs

Alternatives & similar libraries