1.1.0 • Published 9 months ago

general-basic-videoplayer v1.1.0

Weekly downloads
-
License
MPL
Repository
github
Last release
9 months ago

GeneralBasicVideoplayer

基于video.js封装的视频播放器

支持Vue3和Vue2,vue2请使用@1版本,Vue3请使用@2版本

import { VVideoplayer } from "general-basic-videoplayer";
import 'general-basic-videoplayer/style'

<VVideoplayer class="video-player" :controls='false' muted autoplay loop preload :sources="sources"
  playsinline :player-options="playerOptions">
</VVideoplayer>

sources: [{
    src: theSrc,
    type: "video/mp4"
}],
playerOptions: {
    // fill: true,
    height: window.innerHeight,
    userActions: {
        click: false,
        doubleClick: false,
        hotkeys: false,
    }
},

.video-player {
    background-color: #ECEEF0;
}

文档资料: https://gitcode.gitcode.host/docs-cn/video.js-docs-cn/index.html https://www.npmjs.com/package/video.js https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/video

1.1.0

9 months ago

2.0.1

9 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago