Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
e21d6307
Commit
e21d6307
authored
Jul 26, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
33537cd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
src/components/video/index.js
+16
-4
src/utils/proxy-config.js
+13
-0
No files found.
src/components/video/index.js
View file @
e21d6307
...
...
@@ -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
'
);
})
}
...
...
src/utils/proxy-config.js
View file @
e21d6307
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment