From the course: xAPI Foundations

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Query video plays

Query video plays

From the course: xAPI Foundations

Start my 1-month free trial

Query video plays

- [Instructor] Let's take a look at a sample page using xAPI queries to pull back information about video views. In this case, I created the statements using the exercise files from chapter three, lesson six, collecting which segments were played in a video. You should likewise use those files to generate statements for this lesson. We'll be using them in another upcoming lesson as well. When I click Get Video Statements, it's going to ask for a name to search for. I'm going to type in my name. And here you'll see that I, in fact, did play llama_drama at 480p. If I hit this again, and see if my buddy, Craig, watched, he also watched the video. So, let's take a look at what's going on in the code behind this page, and see how this information is being shown to us. Once again, we're going to see this four-step structure. First, set up the endpoint and credentials. If you'd like to use these exercise files on your own, you would, of course, need to enter your own endpoint, your own user…

Contents