Skip to content

southernsun/yt-quiz-lms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Quiz / LMS Library

Most LMS (Learning Management Systems) are too complex or expensive to use for a single video with a couple of questions. Using the YouTube API, I developed a LMS where you can specify which YouTube video to use and which questions to ask at which point within the video.

How to use

  1. In index.htm set the videoId to the id of the YouTube video you want to use.
  2. Update js/questions.js with your own questions and answers.
  3. Setup an API Endpoint and configure your endpoint in js/yt-quiz.js SendResult() method.
  4. Send out invites to users with an additional parameter to the url to keep track of all the users that did your quiz. Parameter to use: ?email=, ex. http://example.com/[email protected]
  • done!

Example

http://bjorn.kuiper.nu/upload/blog/20200207/[email protected]

What is tracked...

The user's e-mail address, the number of questions answered, the number of questions answered correctly and the total percentage of the video that the user exactly watched.

Example of MVC API Endpoint

       public class Model
       {
           public string email { get; set; }
           public int total { get; set; }
           public int correct { get; set; }
           public double percentage { get; set; }
           public double viewed { get; set; }
       }

       [System.Web.Mvc.HttpPost]

       public async Task<JsonResult> QuizResult(Model model)
       {
       } 

About

YouTube Quiz / LMS library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published