Archived
minor fixes
This commit is contained in:
+7
-9
@@ -64,16 +64,15 @@ class VideoPlayer extends Component {
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// access to player in all event handlers via event.target
|
||||
_onError(event) {
|
||||
console.error('on error', event);
|
||||
console.error('Error: ', event);
|
||||
}
|
||||
|
||||
_onPlay(event) {}
|
||||
|
||||
_onReady(event) {
|
||||
// access to player in all event handlers via event.target
|
||||
}
|
||||
_onReady(event) {}
|
||||
|
||||
_onStateChange(event) {
|
||||
let timerId1, timerId2;
|
||||
@@ -110,12 +109,11 @@ class VideoPlayer extends Component {
|
||||
});
|
||||
this.state.promise1
|
||||
.then(
|
||||
risultato => {
|
||||
//console.info(risultato);
|
||||
videoIdWatched => {
|
||||
// post request to local db
|
||||
axios
|
||||
.post('http://localhost:8000/test', {
|
||||
id: risultato.toString()
|
||||
.post('http://localhost:8000/videotrack', {
|
||||
id: videoIdWatched.toString()
|
||||
})
|
||||
.then(
|
||||
response => console.info(response.data),
|
||||
|
||||
Reference in New Issue
Block a user