arsenal0927 / videojsXBlock

Video.js XBlock for OpenEdX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

videojsXBlock

Description

This XBlock provides the Video.js player (www.videojs.com) instead of the default one.

  • True full screen allowed
  • More video speeds available : | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2 | by default
  • (Optional) Source document download button, for example to provide your PPT or PDF file

Customize the XBlock

  • The list of playbackRates can be edited in videojsXBlock / videojs / static / js / videojs_view.js
  • By default, Video Download Allowed is set on True. The default value can be changed in videojsXBlock / videojs / videojs.py

Install / Update the XBlock

See https://github.com/polimediaupv/paellaXBlock installation

# Move to the folder where you want to download the XBlock
cd /edx/app/edxapp
# Download the XBlock
sudo -u edxapp git clone https://github.com/MarCnu/videojsXBlock.git
# Install the XBlock
sudo -u edxapp /edx/bin/pip.edxapp install videojsXBlock/
# Upgrade the XBlock if it is already installed, using --upgrade
sudo -u edxapp /edx/bin/pip.edxapp install videojsXBlock/ --upgrade
# Remove the installation files
sudo rm -r videojsXBlock

Reboot if something isn't right

sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:

Activate the XBlock in your course

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

Use the XBlock in a unit

Select Advanced -> Video JS in your unit.

About

Video.js XBlock for OpenEdX

License:GNU General Public License v3.0


Languages

Language:Python 46.7%Language:HTML 36.5%Language:JavaScript 13.3%Language:CSS 3.4%