3.1.0 • Published 8 months ago

@mux/mux-player-react v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

New release: 3.0

Mux Player recently released 3.0. The most visible change in this is new tooltips that are enabled by default, as well as other fixes and changes.

Previous version: 2.0

For changes relating to the previous major release, 2.0, see the V1 to V2 upgrade guide and the blog post announcement.

Introduction

<MuxPlayer /> is a Mux-flavored React video player component, built on top of our mux-player web component and Media Chrome.

Installation

npm install @mux/mux-player-react

or

yarn add @mux/mux-player-react

Usage

import MuxPlayer from '@mux/mux-player-react';

<MuxPlayer
  playbackId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe"
  metadata={{
    video_id: 'video-id-123456',
    video_title: 'Bick Buck Bunny',
    viewer_user_id: 'user-id-bc-789',
  }}
/>;

Lazy-loading

Defer loading of Mux Player by importing from @mux/mux-player-react/lazy.

import MuxPlayer from '@mux/mux-player-react/lazy';

<MuxPlayer
  loading="viewport"
  playbackId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe"
  metadata={{
    video_id: 'video-id-123456',
    video_title: 'Bick Buck Bunny',
    viewer_user_id: 'user-id-bc-789',
  }}
/>;

If you are generating your pages with a Node.js server (for example, Next.js), consider using @mux/mux-player-react/lazy with @mux/blurhash to generate a placeholder to display during loading.

Docs

Docs and guides live on docs.mux.com.

API reference lives on Github.

3.1.0

8 months ago

3.0.0

10 months ago

2.8.1

11 months ago

2.8.0

12 months ago

2.9.1

11 months ago

2.7.0

1 year ago

2.9.0

11 months ago

2.6.0

1 year ago

2.5.0

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.3

1 year ago

2.3.2

1 year ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

1.11.4

2 years ago

1.11.3

2 years ago

1.12.1

2 years ago

1.12.0

2 years ago

1.13.0

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.14.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.15.0

2 years ago

1.11.2

2 years ago

1.11.1

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.6.1

2 years ago

1.8.0

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago

1.3.0

3 years ago

0.1.0-beta.28

3 years ago

0.1.0-beta.27

3 years ago

1.0.0-beta.0

3 years ago

0.1.0-beta.26

3 years ago

0.1.0-beta.25

3 years ago

0.1.0-beta.24

3 years ago

0.1.0-beta.23

3 years ago

0.1.0-beta.22

3 years ago

0.1.0-beta.21

3 years ago