From e07ca6f229870d84162bb3331555da38f27625d8 Mon Sep 17 00:00:00 2001 From: Roger Tuan Date: Fri, 26 Sep 2025 12:57:52 -0700 Subject: [PATCH 1/2] Added readme section on video analytics with Mux Data --- docs/video-player.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/video-player.md b/docs/video-player.md index 6230ad8..ceba483 100644 --- a/docs/video-player.md +++ b/docs/video-player.md @@ -9,6 +9,7 @@ - [Props](#props) - [Advanced usage: the `useVideoPlayer` hook](#advanced-usage-the-usevideoplayer-hook) - [Example](#example-1) + - [Opt-in Viewer Analytics](#opt-in-viewer-analytics) @@ -146,3 +147,11 @@ const props = useVideoPlayer({ data }); ``` + +## Opt-in Viewer Analytics + +This `` component can OPTIONALLY collect clientside [playback and engagement metrics](https://www.mux.com/data#TechSpecs) such as playback percentages, user agents, and geography. + +These analytics are **disabled** by default. To enable them, you must opt in to [Mux Data](https://www.mux.com/data) integration by creating a Mux Data account (free) and providing its `envKey` to the component. + +For details and setup instructions, please see our on documentation on **[Streaming Video Analytics with Mux Data](https://www.datocms.com/docs/streaming-videos/streaming-video-analytics-with-mux-data)**. From 26fbead83296b93f95c2e21a3d5c9b3cce8772af Mon Sep 17 00:00:00 2001 From: Roger Tuan Date: Fri, 26 Sep 2025 13:01:59 -0700 Subject: [PATCH 2/2] Fixed typo --- docs/video-player.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/video-player.md b/docs/video-player.md index ceba483..ab423b9 100644 --- a/docs/video-player.md +++ b/docs/video-player.md @@ -154,4 +154,4 @@ This `` component can OPTIONALLY collect clientside [playback and These analytics are **disabled** by default. To enable them, you must opt in to [Mux Data](https://www.mux.com/data) integration by creating a Mux Data account (free) and providing its `envKey` to the component. -For details and setup instructions, please see our on documentation on **[Streaming Video Analytics with Mux Data](https://www.datocms.com/docs/streaming-videos/streaming-video-analytics-with-mux-data)**. +For details and setup instructions, please see our documentation on **[Streaming Video Analytics with Mux Data](https://www.datocms.com/docs/streaming-videos/streaming-video-analytics-with-mux-data)**.