1.0.0 • Published 6 years ago

gitbook-plugin-video-7dtime v1.0.0

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

markdown video plugin for GitBook

Plugin for GitBook 3 which renders video videos detected in the book markdown.

How to install it?

You can use install via NPM:

$ npm install gitbook-plugin-video-7dtime

And use it for your book with in the book.json:

{
  "plugins": ["video-7dtime"]
}

How to use it?

Just put the code into fenced code block and tag it video key word like this:

 <video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
 poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
 <source src="MY_VIDEO.mp4" type='video/mp4'>
 <source src="MY_VIDEO.webm" type='video/webm'>
 <p class="vjs-no-js">
   To view this video please enable JavaScript, and consider upgrading to a web browser that
   <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
 </p>
 </video>

Thanks

Thanks to author of the gitbook-plugin-local-video!