Commit 7712f954 authored by yun's avatar yun

封装视频组件-liu

parent 764deb33
...@@ -7929,9 +7929,9 @@ ...@@ -7929,9 +7929,9 @@
"dev": true "dev": true
}, },
"mt-video-player": { "mt-video-player": {
"version": "1.0.2", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/mt-video-player/-/mt-video-player-1.0.2.tgz", "resolved": "https://registry.npmjs.org/mt-video-player/-/mt-video-player-1.0.3.tgz",
"integrity": "sha512-bwHo+8FbzhAMK6psjqfbw+7QB6bYgzKp/aI1Ui5GNCg6iD3QEiLadg+w+1FzeBXjOpd8lZxXnJQFixllI+MDMA==", "integrity": "sha512-bcy1xVGEDrIgGhRaMhN/1SxaxlN+qyez6RTSeRjV7Oc6JtJT8s4WHe0GungP+T8vimPi1p/WhpF14Mf+TfNWgw==",
"requires": { "requires": {
"object-assign": "^4.1.1", "object-assign": "^4.1.1",
"video.js": "^6.6.0", "video.js": "^6.6.0",
...@@ -11894,18 +11894,6 @@ ...@@ -11894,18 +11894,6 @@
"integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=", "integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=",
"dev": true "dev": true
}, },
"vue-video-player": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/vue-video-player/-/vue-video-player-5.0.2.tgz",
"integrity": "sha512-IZXeRGGSX4YIp54G0Q5cB7iqh6Ok6Dpa2jRkjdyvMWw7MShJuh54/d5QNb1CZ+CvZUzX/TH7osnpir7mBNcFvQ==",
"requires": {
"object-assign": "^4.1.1",
"video.js": "^6.6.0",
"videojs-contrib-hls": "^5.12.2",
"videojs-flash": "^2.1.0",
"videojs-hotkeys": "^0.2.20"
}
},
"vuex": { "vuex": {
"version": "3.1.1", "version": "3.1.1",
"resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.1.tgz", "resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.1.tgz",
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"vue-ls": "^3.2.1", "vue-ls": "^3.2.1",
"vue-pdf": "3.1.2", "vue-pdf": "3.1.2",
"vue-router": "^3.0.7", "vue-router": "^3.0.7",
"vue-video-player": "^5.0.0",
"mt-video-player": "^1.0.3", "mt-video-player": "^1.0.3",
"vuex": "^3.0.1" "vuex": "^3.0.1"
}, },
......
...@@ -336,7 +336,7 @@ import MtAudio from '@comp/EduAudio' ...@@ -336,7 +336,7 @@ import MtAudio from '@comp/EduAudio'
import {videoPlayer} from 'mt-video-player' import {videoPlayer} from 'mt-video-player'
import {getChapters, getFileUrl, updateProgress, addLearnLesson, cancleFollow, toFollow} from '@/api/test' import {getChapters, getFileUrl, updateProgress, addLearnLesson, cancleFollow, toFollow} from '@/api/test'
import 'video.js/dist/video-js.css' import 'video.js/dist/video-js.css'
import 'vue-video-player/src/custom-theme.css' import 'mt-video-player/src/custom-theme.css'
import Coursediscuss from '../../components/CourseDiscuss/Coursediscuss' import Coursediscuss from '../../components/CourseDiscuss/Coursediscuss'
import {Loading, Button} from 'vant' import {Loading, Button} from 'vant'
import QRCode from 'qrcode' import QRCode from 'qrcode'
......
...@@ -10,7 +10,7 @@ const dllPath = 'public/vendor' ...@@ -10,7 +10,7 @@ const dllPath = 'public/vendor'
module.exports = { module.exports = {
entry: { entry: {
// 需要提取的库文件 // 需要提取的库文件
vendor: ['vue', 'vue-router', 'vant', 'vue-video-player', 'vuex', 'moment', 'jquery', 'lodash'] vendor: ['vue', 'vue-router', 'vant', 'mt-video-player', 'vuex', 'moment', 'jquery', 'lodash']
}, },
output: { output: {
path: path.join(__dirname, dllPath), path: path.join(__dirname, dllPath),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment