Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Force seek when transition from and to pause state.
damencho6951089130ba
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.jsindex 6adab009b7..179ec6c315 100644--- a/modules/UI/shared_video/SharedVideo.js+++ b/modules/UI/shared_video/SharedVideo.js@@ -184,7 +184,7 @@ export default class SharedVideoManager {if (attributes.state == 'playing') {- this.processTime(player, attributes);+ this.processTime(player, attributes, playerPaused);// lets check the volumeif (attributes.volume !== undefined &&@@ -200,7 +200,7 @@ export default class SharedVideoManager {// if its not paused, pause itplayer.pauseVideo();- this.processTime(player, attributes);+ this.processTime(player, attributes, !playerPaused);}}@@ -208,9 +208,15 @@ export default class SharedVideoManager {* Check for time in attributes and if needed seek in current player* @param player the player to operate over* @param attributes the attributes with the player state we want+ * @param forceSeek whether seek should be forced*/- processTime (player, attributes)+ processTime (player, attributes, forceSeek){+ if(forceSeek) {+ player.seekTo(attributes.time);+ return;+ }+// check received time and current timelet currentPosition = player.getCurrentTime();let diff = Math.abs(attributes.time - currentPosition);