Recording video analytics with Mux Data
Transcript was automatically generated and may be inaccurate.
-
–
Now that we have customers watching videos, it would be nice to know what -
–
videos are being watched for how long and by whom. -
–
So far we've been using Mux for storing and transcoding and delivering videos, but -
–
Mux also has a product for tracking video analytics called Mux Data. -
–
Mux Data works with a large number of video players on different platforms, so -
–
not only can we use Mux Data with web-based video players like we are, -
–
but you can also use it to track videos in native apps and on devices like -
–
smart TVs. -
–
Mux Data works by adding metadata to your video player tag. -
–
It allows us to specify things like video IDs, titles, and even series names if -
–
the video is a single episode of something. -
–
We can also record user identifiers to link views with users, and Mux Data will -
–
also record other events, such as how long the video took to load on the user's -
–
device, how much of the video the user watched, and so on. -
–
Recording video statistics like this is handy for finding out what content you -
–
use as a watching, and also allows you to make informed decisions on which -
–
content to remove or invest in if you're going to have a routine library of -
–
video content. -
–
Mux Data works by setting metadata on the video player tag, so if you open up -
–
our video show view, we can see we're already set a few attributes with a -
–
"metadata" prefix. -
–
Currently we're setting the video ID to the primary key of the video model, -
–
video title to the video's name, -
–
and the viewer user ID to the ID of the authenticated user only if there is one. -
–
If we go to the docs for the Mux Player, to the "Core functionality" section, and -
–
then to the "Mux Platform integration" section, -
–
we'll see that there's a note saying that Mux Data environment is inferred -
–
from the playback ID provided to the Mux Player. -
–
This means that as we already have metadata set on our Mux Player tag, we've -
–
already been sending statistics to Mux Data. -
–
We can verify this by going to the "Data" section of the Mux dashboard. -
–
In the "Data Overview" screen, you'll see a graph shown the number of views, -
–
unique viewers, and playing time. -
–
There's also statistics on the quality of experience for users, as well as the -
–
titles of your top performing videos. -
–
If we go to the "Views" section, we can see individual views of videos from our -
–
platform. -
–
Navigating to a particular view will show information on the video that was -
–
viewed, as well as the details of that particular viewer's experience, -
–
such as how smooth the view was, how long the watch for, whether they jumped -
–
about by seeking, and so on. -
–
There are a number of other metadata attributes you can set, depending on -
–
what makes sense for your use case. -
–
There's attributes for things like content type, so you can specify whether a -
–
video is a movie, an episode, a trailer, etc. -
–
There's also attributes to specify details such as a series name if the video -
–
is a single episode. -
–
And there's also a handy sub-property ID attribute if you have some sort of -
–
multi-tenanted application. -
–
So for example if you have a platform with multiple channels like YouTube, then -
–
you could use a sub-property ID attribute to specify the channel ID, -
–
and see which channels have the most views.