Purchase access to watch this video.

Unlock course for £159

Already purchased access? Login

Recording video analytics with Mux Data

Transcript was automatically generated and may be inaccurate.

  1. Now that we have customers watching videos, it would be nice to know what
  2. videos are being watched for how long and by whom.
  3. So far we've been using Mux for storing and transcoding and delivering videos, but
  4. Mux also has a product for tracking video analytics called Mux Data.
  5. Mux Data works with a large number of video players on different platforms, so
  6. not only can we use Mux Data with web-based video players like we are,
  7. but you can also use it to track videos in native apps and on devices like
  8. smart TVs.
  9. Mux Data works by adding metadata to your video player tag.
  10. It allows us to specify things like video IDs, titles, and even series names if
  11. the video is a single episode of something.
  12. We can also record user identifiers to link views with users, and Mux Data will
  13. also record other events, such as how long the video took to load on the user's
  14. device, how much of the video the user watched, and so on.
  15. Recording video statistics like this is handy for finding out what content you
  16. use as a watching, and also allows you to make informed decisions on which
  17. content to remove or invest in if you're going to have a routine library of
  18. video content.
  19. Mux Data works by setting metadata on the video player tag, so if you open up
  20. our video show view, we can see we're already set a few attributes with a
  21. "metadata" prefix.
  22. Currently we're setting the video ID to the primary key of the video model,
  23. video title to the video's name,
  24. and the viewer user ID to the ID of the authenticated user only if there is one.
  25. If we go to the docs for the Mux Player, to the "Core functionality" section, and
  26. then to the "Mux Platform integration" section,
  27. we'll see that there's a note saying that Mux Data environment is inferred
  28. from the playback ID provided to the Mux Player.
  29. This means that as we already have metadata set on our Mux Player tag, we've
  30. already been sending statistics to Mux Data.
  31. We can verify this by going to the "Data" section of the Mux dashboard.
  32. In the "Data Overview" screen, you'll see a graph shown the number of views,
  33. unique viewers, and playing time.
  34. There's also statistics on the quality of experience for users, as well as the
  35. titles of your top performing videos.
  36. If we go to the "Views" section, we can see individual views of videos from our
  37. platform.
  38. Navigating to a particular view will show information on the video that was
  39. viewed, as well as the details of that particular viewer's experience,
  40. such as how smooth the view was, how long the watch for, whether they jumped
  41. about by seeking, and so on.
  42. There are a number of other metadata attributes you can set, depending on
  43. what makes sense for your use case.
  44. There's attributes for things like content type, so you can specify whether a
  45. video is a movie, an episode, a trailer, etc.
  46. There's also attributes to specify details such as a series name if the video
  47. is a single episode.
  48. And there's also a handy sub-property ID attribute if you have some sort of
  49. multi-tenanted application.
  50. So for example if you have a platform with multiple channels like YouTube, then
  51. you could use a sub-property ID attribute to specify the channel ID,
  52. and see which channels have the most views.

Resources