Merge pull request #1267 from ONLYOFFICE/bugfix/fix-video-player

Web:Components:Viewer: fix video pause
This commit is contained in:
Alexey Safronov 2023-03-02 13:47:45 +04:00 committed by GitHub
commit 22a4051c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -742,7 +742,7 @@ export default function ViewerPlayer(props) {
const lasting = `${currentTime} / ${duration}`;
if (progress === 100 || !state.isPlaying) {
videoRef.current.stop();
videoRef.current.pause();
} else {
videoRef.current.play();
}