Commit e21d6307 by zhanghaozhe

test

parent 33537cd7
...@@ -17,9 +17,10 @@ let alert = Modal.alert ...@@ -17,9 +17,10 @@ let alert = Modal.alert
class Video extends Component { class Video extends Component {
video video //video element
player player //video player instance
courseID courseID
ws //websocket instance
state = { state = {
...@@ -44,6 +45,17 @@ class Video extends Component { ...@@ -44,6 +45,17 @@ class Video extends Component {
}) })
this.getVideoList() this.getVideoList()
this.getDatumCatalog() 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 { ...@@ -59,8 +71,8 @@ class Video extends Component {
playbackRates: ['0.75', '1', '1.5', '2'] playbackRates: ['0.75', '1', '1.5', '2']
}) })
this.player.enableTouchActivity() this.player.enableTouchActivity()
this.player.on('useractive', function () { this.player.on('seeking', function () {
console.log('active'); console.log('seeking');
}) })
} }
......
...@@ -35,7 +35,19 @@ const config = { ...@@ -35,7 +35,19 @@ const config = {
proxy: { proxy: {
secure: false 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 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