Commit e21d6307 by zhanghaozhe

test

parent 33537cd7
......@@ -17,9 +17,10 @@ let alert = Modal.alert
class Video extends Component {
video
player
video //video element
player //video player instance
courseID
ws //websocket instance
state = {
......@@ -44,6 +45,17 @@ class Video extends Component {
})
this.getVideoList()
this.getDatumCatalog()
// this.ws = new WebSocket('ws://process-test.julyedu.com:9501');
/*this.ws = new WebSocket(api['video-record']);
this.ws.onmessage = event => {
console.log(event.data);
}
this.ws.onopen = () => {
console.log('open');
}*/
}
sendStudyRecord = () => {
}
......@@ -59,8 +71,8 @@ class Video extends Component {
playbackRates: ['0.75', '1', '1.5', '2']
})
this.player.enableTouchActivity()
this.player.on('useractive', function () {
console.log('active');
this.player.on('seeking', function () {
console.log('seeking');
})
}
......
......@@ -35,7 +35,19 @@ const config = {
proxy: {
secure: false
}
},
/*
'video-record': {
development: 'ws://process',
test: 'ws://process-test.julyedu.com:9501',
pre: 'ws://process-pre.julyedu.com:9501',
production: 'ws://process.julyedu.com:9501',
proxy: {
ws: true,
logLevel: 'debug',
}
}
*/
}
module.exports = config
\ No newline at end of file
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