Round Video: Fix playing with sound only once (#1117)

This commit is contained in:
Alexander Zinchuk 2021-05-24 13:09:51 +03:00
parent 8eb1eb2d70
commit e2daa2a9a6

View File

@ -161,9 +161,9 @@ const RoundVideo: FC<OwnProps> = ({
playerEl.pause();
}
} else {
capturePlaying();
playerEl.currentTime = 0;
setIsActivated(true);
capturePlaying();
}
}, [capturePlaying, isActivated, mediaData]);