Monitor React native video | Mux

Monitor React native video

Connect Mux Data to react-native-video to collect playback performance metrics. Use this guide when your React Native application plays video with the react-native-video component.

In this guide:

Features

The features supported by Mux Data for this player.

1 Install Mux Data SDK

Install @mux/mux-data-react-native-video either from the npm registry.

2 Initialize Mux Data

Wrap your Video component with the muxReactNativeVideo so that Mux can collect playback metrics.

3 Make your data actionable

Use metadata fields to make the data collected by Mux actionable and useful.

4 Set or update metadata after initialization

If you do not have all the metadata available at initialization time update metadata fields later.

5 Advanced options

Depending on the details of your implementation, you may want to leverage some of the advanced options of @mux/mux-data-react-native-video.

Beta SDK

This SDK is currently beta. See the Known Issues and Caveats in the README on GitHub.

Features

The following data can be collected by the Mux Data SDK when you use the React Native Video SDK, as described below.

Supported Features:

Notes: Video Quality metrics are not available.

1 Install Mux Data SDK

Include the Mux JavaScript SDK on every page of your web app that includes video.


2 Initialize Mux Data

Get your ENV_KEY from the Mux environments dashboard.

Env Key is different than your API token

ENV_KEY is a client-side key used for Mux Data monitoring. These are not to be confused with API tokens which are created in the admin settings dashboard and meant to access the Mux API from a trusted server.

Wrap your Video component with the muxReactNativeVideo higher-order-component.


3 Make your data actionable

The required fields in the muxOptions that you pass into the MuxVideo component are application_name, data.env_key and data.video_id. However, without some metadata the metrics in your dashboard will lack the necessary information to take meaningful actions. Metadata allows you to search and filter on important fields in order to diagnose issues and optimize the playback experience for your end users.

Pass in metadata under the data on initialization.


For more information, view Make your data actionable.

4 Set or update metadata after initialization

There are some cases where you may not have the full set of metadata until after the video playback has started. In this case, you should omit the values when you first initialize the Mux SDK. Then, once you have the metadata, you can update the metadata with the updateData method.


5 Advanced options

Customize beacon collection domain

If you have integrated a custom domain for Data collection, specify your custom domain by setting beaconCollectionDomain.


Release notes

Current release

v0.19.21

Previous releases

v0.19.20

v0.19.19

v0.19.18

v0.19.17

v0.19.16

v0.19.15

v0.19.14

v0.19.13

v0.19.12

v0.19.11

v0.19.10

v0.19.9

v0.19.8

v0.19.7

v0.19.6

v0.19.5

v0.19.4

v0.19.3

v0.19.2

v0.19.1

v0.19.0

v0.18.3

v0.18.2

v0.18.1

v0.18.0

v0.17.6

v0.17.5

v0.17.4

v0.17.3

v0.17.2

v0.17.1

v0.17.0

v0.16.3

v0.16.2

v0.16.1

v0.16.0

v0.15.6

v0.15.5

v0.15.4

v0.15.3

v0.15.2

v0.15.1

v0.15.0

v0.14.4

v0.14.3

v0.14.2

v0.14.1

v0.14.0

v0.13.0

v0.12.3

v0.12.2

v0.12.1

v0.12.0

v0.11.0

v0.10.3

v0.10.2

v0.10.1

v0.10.0

v0.9.0

v0.8.1

v0.8.0

v0.7.0

v0.6.6

v0.6.5

v0.6.4

v0.6.3

v0.6.2

v0.6.1

v0.6.0

v0.5.8

v0.5.7

v0.5.6

v0.5.5

v0.5.4

v0.5.3

v0.5.2

v0.5.1

v0.5.0

v0.4.6

v0.4.5

v0.4.4

v0.4.3

v0.4.2

v0.4.1

v0.4.0

v0.3.0

v0.2.0

v0.1.0

Track your video engagement and performance: