vue-video-xg

vue3自定义视频播放器
793
Install
npm install vue-video-xg
Latest Version:0.0.27
Vue:3
License:MIT
Last Updated:Aug 4, 2023
Links: Gitee  ·  npm
Maintainer: gml2514838942

vue-video-xg

A HTML5 video player component for Vue3

Code

live demo is here: https://gitee.com/derekgo/tool-collection/tree/master/customVideo/vue3/pluginVersion

Installation


npm i vue-video-xg --save

Usage

main.ts

// script
import { createApp } from 'vue';
import App from './App.vue';
import customVideo from "vue-video-xg"
import "vue-video-xg/lib/style.css";//引入样式

const app = createApp(App);
app.use(customVideo); //全局注册
app.mount('#app');

App.vue

<template>
  <div class="app-container">
    <customVideo :config="config" />
  </div>
</template>

<script setup lang="ts">
import {ref} from "vue";

let config = ref({
  src:"", //视频
  poster: "", // 初始化占位图片
  volume: 20,//声音
  themeColor:"#19accc",//主体颜色
  activeColor:"red",//选中颜色
  width:"500px",//宽度
  height:"300px",//高度
})
</script>

Related Packages

markdown-to-jsx

A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS,...

214,042,213 2,394
@scalar/use-toasts

display toasts in Vue

24,371,992 16,329
@scalar/use-codemirror

CodeMirror for Vue

21,770,238 16,329
@scalar/api-reference

Generate beautiful API references from OpenAPI documents

21,031,808 16,329
vaul-vue

Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog re...

19,162,483 497

Version History

Version Released Vue License
0.0.27 ^3.2.47 MIT
0.0.26 ^3.2.47 MIT
0.0.25 ^3.2.47 MIT
0.0.24 ^3.2.47 MIT
0.0.23 ^3.2.47 MIT