GitBook嵌入视频
以下插件尚未实践,待验证
Video Player for GitBook要求:
gitbook >=2.0.0安装
在book.json中添加
{
"plugins": ["video-player"]
}然后执行
gitbook install就可以安装完插件
使用方法
{% videoplayerscripts %}{% endvideoplayerscripts %}例如
{% videoplayer id="docker-myvideo" width="640" height="480" posterExt="png" %}https://s3.amazonaws.com/gitbooks/myvideo{% endvideoplayer %}插件自动加载myvideo.mp4,默认使用WebM编码的视频
参考
Last updated
Was this helpful?