Skip to content

wwj718/VideoJSXBlock-Pro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

VideoJSXBlock Pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 58.1%
  • Python 15.5%
  • HTML 14.5%
  • JavaScript 11.9%