diff --git a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js index 25207e99..10868185 100644 --- a/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js +++ b/com.twin.app.shoptime/src/components/VideoPlayer/VideoPlayer.js @@ -1485,11 +1485,14 @@ const VideoPlayerBase = class extends React.Component { return; } + this.type = this.props.type; + updatedState.currentTime = this.type === "LIVE" ? this.state.currentLiveTimeSeconds : el.currentTime; updatedState.duration = this.type === "LIVE" ? this.state.liveTotalTime : el.duration; + //last time error : for youtube if (this.props.isYoutube && ev.type === "onProgress") { if (updatedState.duration - updatedState.currentTime < 1.0) { @@ -2453,7 +2456,7 @@ const VideoPlayerBase = class extends React.Component {
@@ -2495,9 +2498,7 @@ const VideoPlayerBase = class extends React.Component { { clearTimeout(timerId.current); timerId.current = null;