0.1.5 • Published 2 years ago

zooplayer v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

ZooPlayer

npm      Codacy Badge      致谢

ZooPlayer 是由原生Javascript加Sass编写,无任何第三方运行时依赖,高度可定制化、支持原生Javascript、Vue框架、React框架。

原生JS使用

使用npm或yarn安装

::: code-tabs @tab:active npm

npm i zooplayer

@tab yarn

yarn add zooplayer

:::

然后引入到项目中即可

import ZPlayer from 'zooplayer'

const player = new ZPlayer({
    el: "", // 指定挂载的选择器
    video: {
        src: "" // 视频播放地址
    }
})

player.mount()

Vue中使用

使用npm或yarn安装

::: code-tabs @tab:active npm

npm i zooplayer @zooplayer/vue

@tab yarn

yarn add zooplayer @zooplayer/vue

:::

全局注册

import ZPlayer from "./player"

Vue.use(ZPlayer);

可参考提供原生JS和Vue版的Example

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago