Browse Source

Fix changing playback rate with voice and video

master
Eduard Kuzmenko 2 years ago
parent
commit
9cd680ed1a
  1. 6
      src/components/appMediaPlaybackController.ts
  2. 2
      src/components/peerProfile.ts

6
src/components/appMediaPlaybackController.ts

@ -145,6 +145,10 @@ class AppMediaPlaybackController { @@ -145,6 +145,10 @@ class AppMediaPlaybackController {
this.playingMedia[key] = value;
}
if(key === 'playbackRate' && this.playingMediaType !== undefined) {
this.playbackRates[this.playingMediaType] = value as number;
}
this.dispatchPlaybackParams();
}
};
@ -627,8 +631,6 @@ class AppMediaPlaybackController { @@ -627,8 +631,6 @@ class AppMediaPlaybackController {
this.mediaDetails.delete(media);
}
this.playbackRates[this.playingMediaType] = this.playbackRate;
this.playingMedia = undefined;
this.playingMediaType = undefined;

2
src/components/peerProfile.ts

@ -318,7 +318,7 @@ export default class PeerProfile { @@ -318,7 +318,7 @@ export default class PeerProfile {
const peerId = this.peerId;
const threadId = this.threadId;
if(!peerId || appPeersManager.isRestricted(peerId)) {
if(!peerId || appPeersManager.isRestricted(peerId) || peerId === rootScope.myId) {
return;
}

Loading…
Cancel
Save