Giter VIP home page Giter VIP 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.

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 cthai18 avatar karandikar avatar libremente avatar rsaray avatar stvstnfrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xblock-in-video-quiz's Issues

Fine logs but nothing happens

XBlock==1.2.1
xblock-utils==1.2.0
edx-opaque-keys==0.4.4
Install invideoquiz at hawthorn.2, reboot services and recompile statics (js etc.)
In Studio xblock is perfect (found video by video_id, read problem timemap) BUT in LMS:

  1. over multiple choice problem it signs:

This component will appear in the video at 0:10

looks good

  1. starts video and after 10 seconds nothing happens! bad behaviour
    in the console.log no one error
    /edx/var/log/supervisor/[l|c]ms-stderr.log is empty from errors too

What's the problem?

xblock installation breaks ironwood installation.

Hi all,

we are trying to setup a open edx platform (ironwood). when we restarted the server after installing the quiz in video xblock. the openedx webpage showing error message like " Uh oh, we are having some server issues…" with a sinking ship image. we tried to restart server and lms & cms multiple times. but there is no change.

lms & cms status shows RUNNING and if fails with uptime 0:00:01 or uptime 0:00:02. We uninstalled the xblock and restarted server. But no change in server status, it still fails. Anyone please help to resolve this issue.

Logs are:

==> lms_high_1-stderr.log <==
    self._wrapped = Settings(settings_module)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/lms/envs/production.py", line 31, in <module>
    from .common import *
  File "/edx/app/edxapp/edx-platform/lms/envs/common.py", line 847, in <module>
    from xmodule.x_module import XModuleMixin
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 38, in <module>
    from opaque_keys.edx.asides import AsideUsageKeyV2, AsideDefinitionKeyV2
ImportError: cannot import name AsideUsageKeyV2

==> lms_default_1-stderr.log <==
Traceback (most recent call last):
  File "/edx/app/edxapp/edx-platform/manage.py", line 119, in <module>
    startup = importlib.import_module(edx_args.startup)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/lms/startup.py", line 9, in <module>
    settings.INSTALLED_APPS  # pylint: disable=pointless-statement
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
    self._setup(name)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/lms/envs/production.py", line 31, in <module>
    from .common import *
  File "/edx/app/edxapp/edx-platform/lms/envs/common.py", line 847, in <module>
    from xmodule.x_module import XModuleMixin
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 38, in <module>
    from opaque_keys.edx.asides import AsideUsageKeyV2, AsideDefinitionKeyV2
ImportError: cannot import name AsideUsageKeyV2

==> cms_high_1-stderr.log <==
    __import__(name)
  File "/edx/app/edxapp/edx-platform/cms/startup.py", line 9, in <module>
    settings.INSTALLED_APPS  # pylint: disable=pointless-statement
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
    self._setup(name)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/cms/envs/production.py", line 17, in <module>
    from .common import *
  File "/edx/app/edxapp/edx-platform/cms/envs/common.py", line 49, in <module>
    import lms.envs.common
  File "/edx/app/edxapp/edx-platform/lms/envs/common.py", line 847, in <module>
    from xmodule.x_module import XModuleMixin
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 38, in <module>
    from opaque_keys.edx.asides import AsideUsageKeyV2, AsideDefinitionKeyV2
ImportError: cannot import name AsideUsageKeyV2


==> cms_default_1-stderr.log <==
  File "/edx/app/edxapp/edx-platform/cms/envs/common.py", line 49, in <module>
    import lms.envs.common
  File "/edx/app/edxapp/edx-platform/lms/envs/common.py", line 847, in <module>
    from xmodule.x_module import XModuleMixin
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 38, in <module>
    from opaque_keys.edx.asides import AsideUsageKeyV2, AsideDefinitionKeyV2
ImportError: cannot import name AsideUsageKeyV2

Issue in loading the quiz

Hi,
When i ran the command :
sudo pip install -r /home/edx/edx-xblock-in-video-quiz/requirements.txt

Than i ran this command:
sudo -u edxapp /edx/bin/pip.edxapp install /home/edx/edx-xblock-in-video-quiz/

Which I use to install other XBlocks such as UBCPI, it installed the XBlock I can see the Xblock appear in Advance components in CMS.

The issue is after configuring the XBlock when I play the video in LMS the quiz doesn't load.

I am running the FIcus.4

Am I doing anything wrong or am I missing something?

Thanks.

Problems no longer showing up inside video components as intended

Hello!

  1. I am a member of the edx.org support team and a course team from Stanford has flagged that the quiz is not showing up inside the video as it is supposed to be. I am not personally sure what the expected behavior is/was. However, I can confirm that after enabling this feature and filling out the required settings that the component never shows up inside the video in MFE and in legacy. Please see pictures attached.

*Based on this issue (#22), I am assuming that this tool still works in legacy while enrolled as a learner but edx.org no longer allows learners to view this content in legacy - only in MFE.

Screen Shot 2021-07-06 at 8 55 31 PM
Screen Shot 2021-07-06 at 8 55 47 PM

  1. Also, the bar that states "This component will appear in the video at 1:00" at the top of each problem component in the instructor view no longer appears when viewing the course in MFE (https://learning.edx.org/...). It is only visible in legacy(https://courses.edx.org/...). Please see pictures attached.

Screen Shot 2021-07-06 at 9 04 58 PM
Screen Shot 2021-07-06 at 9 05 27 PM

  1. It also seems as though the problem components should be hidden from learners. However, when viewing the course as a learner in MFE I can see the problem components below the video. Please see picture attached.

Screen Shot 2021-07-06 at 9 00 34 PM
^Note that this is from a test account where I enrolled directly into this course as an ordinary learner.

View of console while viewing MFE in test account:
Screen Shot 2021-07-06 at 9 39 08 PM

Screen Shot 2021-07-06 at 9 02 12 PM
^Note that I am unable to test this tool as an average learner in legacy

Thank you!

Xblock In-Video-Quiz

I'm unable to install xblock invideoquiz or maybe I am doing it wrong. please guide me step by step.

please provide more instruction for studio

Firstly thanks for developing this!
I have "successfully" installed the xblock but it seems to be silently failing in that no questions are showing up at the desired timestep

I would like to check that I am using correct kindly advise on the following:

  1. Dose it matter where I "put" the problem i.e. should I create a new unit for it or can it sit under the video?
  2. What is the video ID? Is it the full string: "block-v1+...." or is it just the random number? Also do I need to use inverted commas when inputting this?
  3. What is the problem ID in the problem timemap field? Again is it the full "block-v1..." or just the random number?

Screenshot 2020-06-11 at 09 35 55

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.