# custom-vue-video-player **Repository Path**: xiaozhouboom_admin/custom-vue-video-player ## Basic Information - **Project Name**: custom-vue-video-player - **Description**: 修改自vue-video-player,解决使用指令时组件重载问题。以及包含hls防盗链案例 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-08-31 - **Last Updated**: 2024-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # custom-vue-video-player #### 介绍 由于公司业务需要,修改 vue-video-player 组件,解决使用指令时组件重载问题。以及包含 hls 防盗链案例。 #### 安装说明 ```js npm install custom-vue-video-player videojs-contrib-hls -S ``` #### 使用说明 #### 1. nuxtjs 中使用 ```js import Vue from "vue"; const VueVideoPlayer = require("custom-vue-video-player/dist/ssr"); import "custom-vue-video-player/src/custom-theme.css"; // 如何过你需要的话。 const hls = require("videojs-contrib-hls"); Vue.use(hls); Vue.use(VueVideoPlayer); ``` ```js
``` #### 2. 常规使用 ```js