This repository is a GitBook Plugin for adding
video.js
support to your GitBook. Protection resources.
The GitBook Plugin: Video Player is no longer actively maintained and is only made available here for reference. The project itself is still capable of providing video.js
functionality for GitBook.
What follows is the original README.md
:
This plugin requires gitbook
version 2.0.x
or newer.
This plugin depends on assets from the video.js project.
Add the below to your book.json
file, then run gitbook install
:
{
"plugins": ["video-player"]
}
First, add the required scripts and stylesheet(s) to your page by adding:
{% videoplayerscripts %}{% endvideoplayerscripts %}
You can now add MP4 and WebM videos to your book using this tag:
{% videoplayer id="myvideo" width="640" height="480" posterExt="png" %}https://s3.amazonaws.com/gitbooks/myvideo{% endvideoplayer %}
The player will automatically load the myvideo.mp4
file for showing MP4-encoded videos. Likewise, it will default to myvideo.webm
for WebM-encoded videos.
This module is currently maintained by the individuals listed below.
Copyright 2015-2017 Kerim Satirli
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.
See the License for the specific language governing permissions and limitations under the License.