|
|
@@ -94,19 +94,19 @@ export default {
|
|
|
const plugins = [];
|
|
|
|
|
|
// 按需动态导入格式插件(安装后才能使用)
|
|
|
- try {
|
|
|
- if (this.videoType === 'hls') {
|
|
|
- const HlsPlugin = require('xgplayer-hls').default;
|
|
|
- plugins.push(HlsPlugin);
|
|
|
- }
|
|
|
- } catch (e) { /* xgplayer-hls 未安装 */ }
|
|
|
-
|
|
|
- try {
|
|
|
- if (this.videoType === 'flv') {
|
|
|
- const FlvPlugin = require('xgplayer-flv').default;
|
|
|
- plugins.push(FlvPlugin);
|
|
|
- }
|
|
|
- } catch (e) { /* xgplayer-flv 未安装 */ }
|
|
|
+ // try {
|
|
|
+ // if (this.videoType === 'hls') {
|
|
|
+ // const HlsPlugin = require('xgplayer-hls').default;
|
|
|
+ // plugins.push(HlsPlugin);
|
|
|
+ // }
|
|
|
+ // } catch (e) { /* xgplayer-hls 未安装 */ }
|
|
|
+
|
|
|
+ // try {
|
|
|
+ // if (this.videoType === 'flv') {
|
|
|
+ // const FlvPlugin = require('xgplayer-flv').default;
|
|
|
+ // plugins.push(FlvPlugin);
|
|
|
+ // }
|
|
|
+ // } catch (e) { /* xgplayer-flv 未安装 */ }
|
|
|
|
|
|
this.player = new Player({
|
|
|
el: this.$refs.container,
|