Home / Companies / Mux / Blog / Post Details
Content Deep Dive

Surface real-time view and unique viewer counts in your video player

Blog post from Mux

Post Details
Company
Mux
Date Published
Author
Ashley Huynh
Word Count
2,155
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Online video is becoming increasingly collaborative, co-operative, and community-oriented. Real-time view and unique viewer counts are vital for connecting viewers to video experiences and ensuring those experiences are delightful and consistent. Mux Data's Real-Time Engagement Counts API allows developers to access real-time data on views and unique viewers. This guide demonstrates how to create a simple React application to surface these metrics, using the Mux Video package for easy embedding and configuration with Mux Video and Mux Data. The app keeps track of viewers and displays them in the UI using React's State Hook. Finally, it sets up a JSON Web Token (JWT) to make recurring API calls and update the view and viewer counts.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 21 960 327 109 +7%
Data Pipeline 1 244 58 26 -42%
Vector Search 1 178 35 26 +117%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.