Skip to content

CultureNumerique/xblock-cnvideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xblock-cnvideo

This python package is meant to be used as an Xblock Component for OpenEDX LMS and Studio. It's purpose is to allow embedding a video hosted on Vimeo so far, but we plan on allowing also videos hosted on canal-u.tv (a french academic web tv).

It is developped and maintained at Université de Lille by the team of the project Culture Numérique

Installation instruction

It depends wether you need to install it in a DevStack or FullStack OpenEDX instance

Install on Devstack

Install on FullStack (production-like environnement)

Several ways of installing a new Xblock on FullStack are documented. We recommend this one but with the following changes:

Allow All Advanced Components (first time only)

  • Manually edit the custom settings in /edx/app/edxapp/cms.env.json.
  • Look for attribute "FEATURES", instead of "EDXAPP_FEATURES", and add an item to it:
"FEATURES":[
    "ALLOW_ALL_ADVANCED_COMPONENTS": true,
    ...
]
  • then restart the server but with following command:
$ sudo /edx/bin/supervisorctl restart edxapp:

Install CNVideoXBlock

Same as in the documentation

# Move to the folder:
cd /edx/app/edxapp
# Download the XBlock
sudo -u edxapp git clone https://github.com/CultureNumerique/xblock-cnvideo.git
# Install it
sudo -u edxapp /edx/bin/pip.edxapp install xblock-cnvideo/
# Optionnaly : Remove the installation files
sudo rm -r xblock-cnvideo

Reboot if something isn't right

In some cases, rebooting is necessary to use the XBlock.

sudo /edx/bin/supervisorctl restart edxapp:

Activate the CNVideoXBlock in your course

Go to Settings -> Advanced Settings and set advanced_modules to ["cnvideo"].

Use it in a unit

Select Advanced -> cnvideo in your unit.

Update

About

plugin for inserting videos into a OpenEDX course

Resources

Stars

Watchers

Forks

Packages

No packages published