y595705120 3 vuotta sitten
vanhempi
commit
032284b8e2
3 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 2 2
      config/index.js
  2. 0 1
      src/containers/center/play/index.vue
  3. 2 0
      src/main.js

+ 2 - 2
config/index.js

@@ -3,8 +3,8 @@
 // see http://vuejs-templates.github.io/webpack for documentation.
 //
 // const TARGET = "http://study.ndjsxh.cn:8888/"
-// const TARGET = "http://localhost:8000/"
-const TARGET = "http://sm.hqedust.com:8889/"
+const TARGET = "http://localhost:8000/"
+// const TARGET = "http://sm.hqedust.com:8889/"
 const path = require('path')
 
 module.exports = {

+ 0 - 1
src/containers/center/play/index.vue

@@ -362,7 +362,6 @@
         httpServer('course.GetMedia', {id:item.id}).then( ({data, code}) => {
           item.url = data
           this.options.sources = [{src:item.url}];
-          this.options.playbackRate = 2;
           this.options.playtimes = item.position;
           this.mediaDialog = true;
         });

+ 2 - 0
src/main.js

@@ -14,6 +14,8 @@ Vue.prototype.$md5 = md5;
 import '@babel/polyfill'
 require('es6-promise').polyfill()
 
+const hls = require('videojs-contrib-hls')
+Vue.use(hls)
 
 
 Vue.config.productionTip = false