Code Monkey home page Code Monkey logo

xblock-in-video-quiz's Introduction

In Video Quiz XBlock BS CA

This XBlock allows for edX components to be displayed to users inside of videos at specific time points.

Installation

Install the requirements into the python virtual environment of your edx-platform installation by running the following command from the root folder:

$ pip install -r requirements.txt

Enabling in Studio

You can enable the In Video Quiz XBlock in Studio through the advanced settings.

  1. From the main page of a specific course, navigate to Settings -> Advanced Settings from the top menu.
  2. Check for the advanced_modules policy key, and add "invideoquiz" to the policy value list.
  3. Click the "Save changes" button.

Usage and configuration

In Studio (CMS):

For this xblock to function properly, the course author must add to the unit:

a video to be played a problem to pop up at a specific time moment (or several problems) an in-video-quiz xblock (from the list of advanced components) (see the screenshot below).

Studio Unit view

The in-video-quiz block must be edited as follows:

  • the very last part of Component Location ID of the Video block (not the Video ID!) should be copied from the settings of the video and pasted into "Video ID" field.
  • the very last part of Component Location ID of the Problem block should be copied from the settings of the corresponding problem(s) and inserted into the dictionary-like JSON structure in the 'Problem Timemap' field (see the screenshot below).
  • blocks order within the Unit matters (in-video-quiz block must follow after the video block and problems / quizes).

Studio xBlock Editor view

NOTE: The key "5" in the dictionary corresponds to the 5th second (0:05) of the video.

In LMS:

When a student is logged in, only the video is displayed initially:

LMS Student view

At the time moment indicated by the course author in the in-video-quiz xblock settings (5th second in this example), the video is paused and is replaced by the quiz (problem):

LMS Student quiz view

NOTE: The video can be resumed by pressing the 'Continue' button.

When a staff member is logged in, the video is displayed along with the problem(s) to be shown in it. Each problem is supplied with indication of the time moment, when it appears in the video:

LMS Staff view

Package Requirements

setup.py contains a list of package dependencies which are required for this XBlock package. This list is what is used to resolve dependencies when an upstream project is consuming this XBlock package. requirements.txt is used to install the same dependencies when running the tests for this package.

License

The In Video Quiz XBlock is available under the AGPL Version 3.0 License.

xblock-in-video-quiz's People

Contributors

caesar2164 avatar karandikar avatar stvstnfrd avatar cthai18 avatar mraarif avatar glugovgrglib avatar awais786 avatar ericfab179 avatar wowkalucky avatar libremente avatar

Stargazers

Amjad Smadi avatar

Watchers

Aleksey Radchenko avatar Oksana Slusarenko avatar Vladimir avatar James Cloos avatar Max Sokolski avatar Anton Stupak avatar Igor Degtiarov avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.