gitbook-plugin-html5-video

1.0.2 • Public • Published

gitbook-plugin-html5-video

This plugin helps you to include Video tag in your html5 pages.

This plugins requires gitbook >=2.0.0.

Setup

Add it to your book.json, then run gitbook install:

{
    plugins: ["html5-video"]
}

Write in gitbook-markdown.md

1. {% video %}https://www.domain.com/video.mp4{% endvideo %}

2. {% video width="740", height="350" %}https://www.domain.com/video.mp4{% endvideo %}

3. {% video width="740", height="350", loop="loop", controls="controls", autoplay="autoplay" %}https://www.domain.com/video.mp4{% endvideo %}
...

gitbook build result.

<video src="https://www.domain.com/video.mp4" width="100%" height="100%"></video>

<video src="https://www.domain.com/video.mp4" width="740" height="350"></video>

<video src="https://www.domain.com/video.mp4" width="740" height="350" controls loop autoplay></video>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    1
  • 1.0.0
    2

Package Sidebar

Install

npm i gitbook-plugin-html5-video

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

3.4 kB

Total Files

4

Last publish

Collaborators

  • harriszhang