Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Plugin for GitBook to add support for embedding videos using Video.js.

License

Notifications You must be signed in to change notification settings

ksatirli/gitbook-plugin-videoplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitBook Plugin: Video Player

This repository is a GitBook Plugin for adding video.js support to your GitBook. Protection resources.

This project is no longer maintained

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:


Table of Contents

Requirements

This plugin requires gitbook version 2.0.x or newer.

Dependencies

This plugin depends on assets from the video.js project.

Usage

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.

Author Information

This module is currently maintained by the individuals listed below.

License

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.

About

Plugin for GitBook to add support for embedding videos using Video.js.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published