|
|
@ -130,7 +130,7 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => {
|
|
|
|
let newTime = el.current.currentTime
|
|
|
|
let newTime = el.current.currentTime
|
|
|
|
let timeDiff = newTime - lastUpdatedTime
|
|
|
|
let timeDiff = newTime - lastUpdatedTime
|
|
|
|
//currenttime update before Seeking & Seeked fired
|
|
|
|
//currenttime update before Seeking & Seeked fired
|
|
|
|
if (Math.abs(timeDiff) < 0.5) {
|
|
|
|
if (Math.abs(timeDiff) < 10) {
|
|
|
|
sumTimePlayed += Math.abs(timeDiff)
|
|
|
|
sumTimePlayed += Math.abs(timeDiff)
|
|
|
|
lastUpdatedTime = newTime
|
|
|
|
lastUpdatedTime = newTime
|
|
|
|
if (!isLoging) {
|
|
|
|
if (!isLoging) {
|
|
|
|