vuepress-plugin-core-video-player

logo

A Lightweight Video Player For VuePress.

View Demo

Install

npm install -D vuepress-plugin-core-video-player
# OR yarn add -D vuepress-plugin-core-video-player

Use

1). config.js

module.exports = {
  plugins: [
    'vuepress-plugin-core-video-player',
    {
      lang: 'zh-CN', // zh-CN/en/jp/other language json
    }
  ]
}

2). *.md, click here for more configuration of core video player.

<corevideoplayer
  src="https://media.vued.vanthink.cn/sparkle_your_name_am720p.webm" 
  cover="https://img1.wxzxzj.com/vpc-example-cover-your-name-c.png"
  logo="https://img1.wxzxzj.com/logo-white-mini.png"
  preload="metadata"
  title="vuepress-plugin-core-video-player"
  controls="auto"
  :autoplay=true
  :muted=false
  :loop=true>
</corevideoplayer>

# Or

<corevideoplayer src="https://media.vued.vanthink.cn/sparkle_your_name_am720p.webm">
</corevideoplayer>

ps: src is required