Merge pull request #19840 from Scroody/i-19775
Fix: External video plays while paused when it has some user action
This commit is contained in:
commit
cdf0b50482
@ -505,7 +505,8 @@ const ExternalVideoPlayerContainer: React.FC = () => {
|
||||
const playerUpdatedAt = currentMeeting.externalVideo?.updatedAt ?? Date.now();
|
||||
const playerUpdatedAtDate = new Date(playerUpdatedAt);
|
||||
const currentDate = new Date(Date.now() + timeSync);
|
||||
const currentTime = (((currentDate.getTime() - playerUpdatedAtDate.getTime()) / 1000)
|
||||
const isPaused = !currentMeeting.externalVideo?.playerPlaying ?? false;
|
||||
const currentTime = isPaused ? playerCurrentTime : (((currentDate.getTime() - playerUpdatedAtDate.getTime()) / 1000)
|
||||
+ playerCurrentTime) * playerPlaybackRate;
|
||||
const isPresenter = currentUser.presenter ?? false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user